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-1.3.19 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.rc.4 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.rc.3 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.rc.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.rc.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.18 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.beta.5 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.beta.4 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.beta.3 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.17 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.beta.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-2.0.0.beta.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.16 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.15 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.14 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.13 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.12 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.11 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.10 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.9 examples/sinatra/features/step_definitions/add_steps.rb