Class: CukeTest::CucumberMatchers::PassCuke
- Inherits:
-
Object
- Object
- CukeTest::CucumberMatchers::PassCuke
- Defined in:
- lib/cuke-test/cucumber_matchers.rb
Instance Method Summary collapse
Instance Method Details
#failure_message ⇒ Object
9 10 11 |
# File 'lib/cuke-test/cucumber_matchers.rb', line 9 def ('to pass') end |
#matches?(target) ⇒ Boolean
4 5 6 7 |
# File 'lib/cuke-test/cucumber_matchers.rb', line 4 def matches?(target) @target = target !!target.match(/[0-9]+ scenarios? \([0-9]+ passed\)/) end |
#negative_failure_message ⇒ Object
13 14 15 |
# File 'lib/cuke-test/cucumber_matchers.rb', line 13 def ('not to pass') end |