Class: CukeTest::CucumberMatchers::PassCuke

Inherits:
Object
  • Object
show all
Defined in:
lib/cuke-test/cucumber_matchers.rb

Instance Method Summary collapse

Instance Method Details

#failure_messageObject



9
10
11
# File 'lib/cuke-test/cucumber_matchers.rb', line 9

def failure_message
	message('to pass')
end

#matches?(target) ⇒ Boolean

Returns:

  • (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_messageObject



13
14
15
# File 'lib/cuke-test/cucumber_matchers.rb', line 13

def negative_failure_message
	message('not to pass')
end