Sha256: cc6dc0d7582d788ab20417c0ac28c1a77bbf49be49aa7fdc7aa294d66e61c251

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

# Commonly used webrat steps
# http://github.com/brynary/webrat

When /I press "(.*)"/ do |button|
  clicks_button(button)
end

When /I follow "(.*)"/ do |link|
  clicks_link(link)
end

When /I fill in "(.*)" for "(.*)"/ do |value, field|
  fills_in(field, :with => value) 
end

When /I check "(.*)"/ do |field|
  checks(field) 
end

When /I go to "(.*)"/ do |path|
  visits(path) 
end

Then /I should see "(.*)"/ do |text|
  response.body.should =~ /#{text}/m
end

Then /I should not see "(.*)"/ do |text|
  response.body.should_not =~ /#{text}/m
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aslakhellesoy-cucumber-0.1.3 generators/cucumber/templates/common_webrat.rb
aslakhellesoy-cucumber-0.1.4 generators/cucumber/templates/common_webrat.rb