features/step_definitions/button_steps.rb in gametel-0.3 vs features/step_definitions/button_steps.rb in gametel-0.4
- old
+ new
@@ -12,10 +12,10 @@
Then /^I should be able to click the button by "(.*?)"$/ do |how|
on(ButtonScreen).send "normal_#{how}"
end
When /^I click the on\/off button$/ do
- on(ButtonScreen).on_off
+ on(ButtonScreen).on_off_id
end
Then /^I should see the text "(.*?)" on the screen$/ do |text|
on(ButtonScreen).should have_text text
end