Module: Reeve::Testing::Matchers
- Defined in:
- lib/reeve/testing/matchers.rb,
lib/reeve/testing/matchers/base.rb,
lib/reeve/testing/matchers/deny_access_for.rb,
lib/reeve/testing/matchers/audit_every_call.rb,
lib/reeve/testing/matchers/pass_reeve_check.rb
Overview
The RSpec front-end.
require "reeve/rspec"
RSpec.configure { |c| c.include Reeve::Testing::Matchers }
RSpec.describe InvoiceSearchTool do
it { is_expected.to deny_access_for(stranger).with(query: "AC") }
it { is_expected.to audit_every_call }
end
Defined Under Namespace
Classes: AuditEveryCall, Base, DenyAccessFor, PassReeveCheck
Instance Method Summary
collapse
Instance Method Details
#audit_every_call ⇒ Object
24
25
26
|
# File 'lib/reeve/testing/matchers.rb', line 24
def audit_every_call
AuditEveryCall.new
end
|
#deny_access_for(principal) ⇒ Object
20
21
22
|
# File 'lib/reeve/testing/matchers.rb', line 20
def deny_access_for(principal)
DenyAccessFor.new(principal)
end
|
#pass_reeve_check ⇒ Object
28
29
30
|
# File 'lib/reeve/testing/matchers.rb', line 28
def pass_reeve_check
PassReeveCheck.new
end
|