Sha256: 93a532203acd55175abd8b29d190c3b656a5a8b2641afc4c1e6f5660f206c305
Contents?: true
Size: 402 Bytes
Versions: 19
Compression:
Stored size: 402 Bytes
Contents
RSpec::Matchers.define :permit! do |action| match do |policy| policy.public_send("#{action}?") end failure_message_for_should do |policy| "#{policy.class} does not permit #{action} on #{policy.record} for #{policy.user.inspect}." end failure_message_for_should_not do |policy| "#{policy.class} does not forbid #{action} on #{policy.record} for #{policy.user.inspect}." end end
Version data entries
19 entries across 19 versions & 1 rubygems