Skip to content

@ncherro /matchers.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
RSpec::Matchers.define :permit do |*args|
match do |permission|
expect(permission.allow?(*args)).to be_true
end
end
RSpec::Matchers.define :permit_param do |*args|
match do |permission|
expect(permission.allow_param?(*args)).to be_true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.