Class: DontRepeatYourself::UnitTestingHelpers::RSpecMatchers::BeDRY
- Inherits:
-
Object
- Object
- DontRepeatYourself::UnitTestingHelpers::RSpecMatchers::BeDRY
- Defined in:
- lib/dont_repeat_yourself/unit_testing_helpers.rb
Instance Method Summary collapse
- #description ⇒ Object
- #failure_message ⇒ Object
- #matches?(project) ⇒ Boolean
-
#negative_failure_message ⇒ Object
TODO Do we really need this? It does not make a lot of sense.
Instance Method Details
#description ⇒ Object
54 55 56 |
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 54 def description "be " << @project.description end |
#failure_message ⇒ Object
58 59 60 |
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 58 def @project. end |
#matches?(project) ⇒ Boolean
44 45 46 47 |
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 44 def matches?(project) @project = project @project.dry? end |
#negative_failure_message ⇒ Object
TODO Do we really need this? It does not make a lot of sense
50 51 52 |
# File 'lib/dont_repeat_yourself/unit_testing_helpers.rb', line 50 def "expected #{@project.name} to have more than #{@project.max_number_of_duplicate_lines_in_project} duplicate lines :\n but found the following:\n " end |