Skip to content

Instantly share code, notes, and snippets.

@ncherro
Created Aug 21, 2013
Embed
What would you like to do?
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