Sha256: 6e36d524a661166882b6b9e0190007675977336c85950e96d3a7a474d1834c03

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

class CheckIn::Video

  include RSpec::Expectations
  include RSpec::Matchers

  def initialize(label = nil, value, within)
    @label = label
    @value = value
    @within = within || Capybara.current_session
  end

  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

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pickles-0.2.4 lib/cucumber/pickles/steps/check_in/video.rb
pickles-0.2.3 lib/cucumber/pickles/steps/check_in/video.rb
pickles-0.2.2 lib/cucumber/pickles/steps/check_in/video.rb