Class: CheckIn::Image
- Inherits:
-
Object
- Object
- CheckIn::Image
- Includes:
- RSpec::Expectations, RSpec::Matchers
- Defined in:
- lib/cucumber/pickles/steps/check_in/image.rb
Instance Method Summary collapse
- #call(is_not = false) ⇒ Object
-
#initialize(label = nil, value, within) ⇒ Image
constructor
A new instance of Image.
Constructor Details
Instance Method Details
#call(is_not = false) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cucumber/pickles/steps/check_in/image.rb', line 12 def call(is_not = false) if is_not expect(@within).not_to have_selector("img[src*='#@value']") else expect(@within).to have_selector("img[src*='#@value']") end end |