features/step_definitions/button_steps.rb in gametel-0.1 vs features/step_definitions/button_steps.rb in gametel-0.2
- old
+ new
@@ -18,5 +18,9 @@
end
Then /^I should see the text "(.*?)" on the screen$/ do |text|
on(ButtonScreen).should have_text text
end
+
+When /^I click the on\/off button by "(.*?)"$/ do |how|
+ on(ButtonScreen).send "on_off_#{how}"
+end