Created
January 16, 2013 21:37
-
-
Save jglick/4551171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/features/configure_slaves.feature b/features/configure_slaves.feature | |
index 80603e6..3b199e4 100644 | |
--- a/features/configure_slaves.feature | |
+++ b/features/configure_slaves.feature | |
@@ -6,9 +6,13 @@ Feature: configure slaves | |
Scenario: Tie a job to a specified label | |
Given a job | |
And a dumb slave | |
+ Then Wait for keypress | |
When I add the label "test" to the slave | |
+ Then Wait for keypress | |
And I configure the job | |
+ Then Wait for keypress | |
And I tie the job to the "test" label | |
+ Then Wait for keypress | |
Then I should see the job tied to the "test" label | |
Scenario: Tie a job to a specific slave | |
diff --git a/features/step_definitions/slave_steps.rb b/features/step_definitions/slave_steps.rb | |
index dbb56a2..33a4402 100644 | |
--- a/features/step_definitions/slave_steps.rb | |
+++ b/features/step_definitions/slave_steps.rb | |
@@ -38,3 +38,7 @@ Then /^I should see "([^"]*)" executors configured$/ do |count| | |
visit("/computer/#{@slave.name}") | |
@slave.executor_count.should == count.to_i | |
end | |
+ | |
+Then /^Wait for keypress$/ do | |
+ STDIN.getc | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment