Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- When /^I start up my sheep counter$/ do
- @counter_app, @counter_window = Bewildr::Application.start_app_and_wait_for_window("c:\\wpfbdd\\SheepCounter\\SheepCounter\\bin\\Debug\\SheepCounter.exe", "Sheep Counter")
- @counter_app.should be_running
- @counter_window.should be_open
- end
- Then /^it tells me that no sheep have moved field yet$/ do
- @counter_window.get(:id => "sheep_count").text.should == "0"
- end
- Given /^I have started my sheep counter$/ do
- Given 'I start up my sheep counter'
- end
- When /^I move one sheep$/ do
- @counter_window.get(:id => "increment_sheep").click
- end
- Then /^it tells me that (\d+) sheep ha(?:s|ve) moved$/ do |expected|
- @counter_window.get(:id => "sheep_count").text.should == expected
- end
- Given /^I have moved (\d+) sheep already$/ do |target|
- while @counter_window.get(:id => "sheep_count").text != target do
- @counter_window.get(:id => "increment_sheep").click
- end
- end
- When /^I move another sheep$/ do
- When 'I move one sheep'
- end
Add Comment
Please, Sign In to add comment