Sha256: c6a16f391eaca0ba7d172d14f4631455aa9e0d34130bd56e0741a0eb843b87d0

Contents?: true

Size: 321 Bytes

Versions: 17

Compression:

Stored size: 321 Bytes

Contents

class CheckIn::Text

  include RSpec::Expectations
  include RSpec::Matchers

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

  def call
    expect(@within).to have_content(@value)
    expect(@within).to have_content(@label)
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pickles-0.2.4 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.2.3 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.2.2 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.2.1 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.2.0 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.12 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.10 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.9 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.8 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.7 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.6 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.5 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.4 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.3 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.2 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.1 lib/cucumber/pickles/steps/check_in/text.rb
pickles-0.1.0 lib/cucumber/pickles/steps/check_in/text.rb