1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00
BikeShed-1/spec/acceptance/steps/common_steps.rb
Jason Denney aa3ed3d43b git init
2012-12-04 00:46:15 -05:00

16 lines
395 B
Ruby

step "show me the page" do
save_and_open_page
end
step "I click the link :link_text" do |link_text|
page.click_link link_text
end
step "I click the button :button_text" do |button_text|
page.click_button button_text
end
step "I fill out the form with :model :field_name :field_value" do |model, field_name, field_value|
page.fill_in "#{model}_#{field_name}", :with => field_value
end