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
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/examples/sinatra/features/step_definitions/add_steps.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/examples/sinatra/features/step_definitions/add_steps.rb
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.8 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.7 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.6 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.5 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.4 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.3 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.2 examples/sinatra/features/step_definitions/add_steps.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.3.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.2.5 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.2.3 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-1.2.2 examples/sinatra/features/step_definitions/add_steps.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/examples/sinatra/features/step_definitions/add_steps.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/examples/sinatra/features/step_definitions/add_steps.rb
casecumber-1.0.2.1 examples/sinatra/features/step_definitions/add_steps.rb
casecumber-1.2.1.cb2 examples/sinatra/features/step_definitions/add_steps.rb