features/step_definitions/steps.rb in cucumber-pro-0.0.12 vs features/step_definitions/steps.rb in cucumber-pro-0.0.13
- old
+ new
@@ -13,21 +13,27 @@
run_simple "git init"
run_simple "git config user.email \"test@test.com\""
run_simple "git config user.name \"Test user\""
run_simple "git commit --allow-empty -m 'Initial commit'"
run_simple "git remote add origin #{repo_url}"
- run_simple "git config --get remote.origin.url"
+ # TODO: this is an experiment to fix flickering build on CI. May not be required.
+ # wait for the git repo to be created before continuing
+ eventually do
+ run "git config --get remote.origin.url" do |process|
+ expect(process.output.strip).to eq repo_url
+ end
+ end
end
Given(/^a feature "(.*?)" with:$/) do |path, content|
write_file path, content
end
Then(/^the results service should receive a header$/) do
eventually do
- results_service.messages.length.should > 0
+ expect(results_service.messages.length).to be > 0
end
- results_service.messages.first['repo_url'].should == repo_url
+ expect(results_service.messages.first['repo_url']).to eq repo_url
end
Then(/^the results service should receive these ([\w\-]+) results:$/) do |type, results|
expected_results = results.hashes
actual_results = eventually {