Sha256: b5078d35fba824fa6c82fef313ee949ce89a3470fced41897716cd6bb4db59fb

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 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

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-3.0.1 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-3.0.0 examples/sinatra/features/step_definitions/add_steps.rb
cucumber-3.0.0.pre.2 examples/sinatra/features/step_definitions/add_steps.rb