Sha256: ca7722c8c6f9878012c293908736b1d3a50ebcd3cda74c6b2ee204e286e998ae
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
RSpec::Matchers.define :be_allowed_to do |ability, resource| match do |api_user| api_user.may?(ability, resource) end description do "have the ability to #{ability} #{resource}" end failure_message_for_should do "expected user to have the ability to #{ability} #{resource}, but it didn't." end failure_message_for_should_not do "expected user bot to have the ability to #{ability} #{resource}, but it did." end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asset_host_core-2.0.0.beta | spec/support/permission_matcher.rb |