Class: Reek::Spec::ShouldReek
- Includes:
- ReekMatcher
- Defined in:
- lib/reek/adapters/spec.rb
Overview
:nodoc:
Instance Method Summary collapse
- #failure_message_for_should ⇒ Object
- #failure_message_for_should_not ⇒ Object
- #matches?(actual) ⇒ Boolean
Methods included from ReekMatcher
Instance Method Details
#failure_message_for_should ⇒ Object
59 60 61 |
# File 'lib/reek/adapters/spec.rb', line 59 def "Expected #{@sniffer.desc} to reek, but it didn't" end |
#failure_message_for_should_not ⇒ Object
62 63 64 |
# File 'lib/reek/adapters/spec.rb', line 62 def "Expected no smells, but got:\n#{report}" end |
#matches?(actual) ⇒ Boolean
55 56 57 58 |
# File 'lib/reek/adapters/spec.rb', line 55 def matches?(actual) @sniffer = actual.sniff @sniffer.smelly? end |