~ubuntu-branches/ubuntu/trusty/cucumber/trusty

« back to all changes in this revision

Viewing changes to examples/ramaze/features/step_definitions/add_steps.rb

  • Committer: Bazaar Package Importer
  • Author(s): Antonio Terceiro
  • Date: 2011-08-14 13:49:11 UTC
  • Revision ID: james.westby@ubuntu.com-20110814134911-9eepde13gulymmfy
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Given /^I visit the calculator page$/ do
 
2
  visit '/'
 
3
end
 
4
 
 
5
Given /^I fill in '(.*)' for '(.*)'$/ do |value, field|
 
6
  fill_in(field, :with => value)
 
7
end
 
8
 
 
9
When /^I press '(.*)'$/ do |name|
 
10
  click_button(name)
 
11
end
 
12
 
 
13
Then /^I should see '(.*)'$/ do |text|
 
14
  response_body.should contain(/#{text}/m)
 
15
end