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.1.1 examples/sinatra/features/step_definitions/add_steps.rb
js-log-cucumber-1.0.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.1.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.6 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.5 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.4 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.3 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.0.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.8.7 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.8.6 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.10.7 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.10.6 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.10.5 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.10.3 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.10.2 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-0.10.1 examples/sinatra/features/step_definitions/add_steps.rb
stefl-cucumber-0.10.1 examples/sinatra/features/step_definitions/add_steps.rb
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/cucumber-0.9.4/examples/sinatra/features/step_definitions/add_steps.rb