Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 387 Bytes
require 'pry'
require 'allowy'
require 'allowy/matchers'
RSpec.configure do |c|
c.treat_symbols_as_metadata_keys_with_true_values = true
c.run_all_when_everything_filtered = true
end
class SampleAccess
include Allowy::AccessControl
def read?(str)
str == 'allow'
end
def context_is_123?(*whatever)
context === 123
end
end
class Sample
attr_accessor :name
end
Jump to Line
Something went wrong with that request. Please try again.