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