Sha256: 394db3b4ae94a9f1266526f0fd330c071ddf532c9f9521fb8c6418bbf7db1150

Contents?: true

Size: 290 Bytes

Versions: 127

Compression:

Stored size: 290 Bytes

Contents

Given /^I visit the calculator page$/ do
  visit '/add'
end

Given /^I fill in '(.*)' for '(.*)'$/ do |value, field|
  fill_in(field, :with => value)
end

When /^I press '(.*)'$/ do |name|
  click_button(name)
end

Then /^I should see '(.*)'$/ do |text|
  body.should match(/#{text}/m)
end

Version data entries

127 entries across 123 versions & 13 rubygems

Version Path
cucumber-2.99.0 examples/sinatra/features/step_definitions/add_steps.rb
mobiusloop-0.1.5 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-3.0.0.pre.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.4.0 examples/sinatra/features/step_definitions/add_steps.rb
mobiusloop-0.1.3 examples/sinatra/features/step_definitions/add_steps.rb
mobiusloop-0.1.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.3.3 examples/sinatra/features/step_definitions/add_steps.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/examples/sinatra/features/step_definitions/add_steps.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/examples/sinatra/features/step_definitions/add_steps.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.3.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.3.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.3.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.2.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.1.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.20 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.rc.5 examples/sinatra/features/step_definitions/add_steps.rb