Created
August 21, 2013 14:28
-
-
Save ncherro/6295189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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