Class: Audited::RspecMatchers::AssociatedAuditMatcher
- Inherits:
-
Object
- Object
- Audited::RspecMatchers::AssociatedAuditMatcher
- Defined in:
- lib/audited/rspec_matchers.rb
Overview
:nodoc:
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message ⇒ Object
- #matches?(subject) ⇒ Boolean
- #negative_failure_message ⇒ Object
Instance Method Details
#description ⇒ Object
152 153 154 |
# File 'lib/audited/rspec_matchers.rb', line 152 def description "has associated audits" end |
#failure_message ⇒ Object
144 145 146 |
# File 'lib/audited/rspec_matchers.rb', line 144 def "Expected #{model_class} to have associated audits" end |
#matches?(subject) ⇒ Boolean
138 139 140 141 142 |
# File 'lib/audited/rspec_matchers.rb', line 138 def matches?(subject) @subject = subject association_exists? end |
#negative_failure_message ⇒ Object
148 149 150 |
# File 'lib/audited/rspec_matchers.rb', line 148 def "Expected #{model_class} to not have associated audits" end |