Class: Reeve::Testing::Matchers::AuditEveryCall
- Defined in:
- lib/reeve/testing/matchers/audit_every_call.rb
Overview
FR-017, from RSpec:
it { is_expected.to audit_every_call }
it { is_expected.to audit_every_call.for_principal(alice).with(query: "AC") }
Point it at the host's own call site to prove that that goes through the envelope, which is where an audit bypass actually lives:
it { is_expected.to audit_every_call.invoked_by(MyServer.method(:dispatch)) }
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#failure_message, #failure_message_when_negated, #initialize, #invoked_by, #matches?, #reading, #supports_block_expectations?, #with
Constructor Details
This class inherits a constructor from Reeve::Testing::Matchers::Base
Class Method Details
.check ⇒ Object
16 17 18 |
# File 'lib/reeve/testing/matchers/audit_every_call.rb', line 16 def self.check Checks::AuditCoverage end |
Instance Method Details
#description ⇒ Object
25 26 27 |
# File 'lib/reeve/testing/matchers/audit_every_call.rb', line 25 def description "audit every call" end |
#for_principal(principal) ⇒ Object
20 21 22 23 |
# File 'lib/reeve/testing/matchers/audit_every_call.rb', line 20 def for_principal(principal) @principal = principal self end |