diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a0787fa..950bf489 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ Breaking Changes: * Improved the output of `cap --help`. (@mbrictson) * Cucumber suite now runs on the latest version of Vagrant (@tpett) * The `ask` method now supports the `echo: false` option. (@mbrictson, @kaikuchn) + * Cucumber scenario improvements (@bruno-) * Added suggestion to Capfile to use 'capistrano-passenger' gem, replacing suggestion in config/deploy.rb to re-implement 'deploy:restart' (@betesh) * Updated svn fetch_revision method to use `svnversion` diff --git a/features/deploy.feature b/features/deploy.feature index a97a53b0..bad707be 100644 --- a/features/deploy.feature +++ b/features/deploy.feature @@ -6,7 +6,8 @@ Feature: Deploy Scenario: Creating the repo When I run cap "git:check" - Then references in the remote repo are listed + Then the task is successful + And references in the remote repo are listed Scenario: Creating the directory structure When I run cap "deploy:check:directories" diff --git a/features/step_definitions/assertions.rb b/features/step_definitions/assertions.rb index a8323da4..5570beb1 100644 --- a/features/step_definitions/assertions.rb +++ b/features/step_definitions/assertions.rb @@ -1,4 +1,5 @@ Then(/^references in the remote repo are listed$/) do + expect(@output).to include('refs/heads/master') end Then(/^the shared path is created$/) do diff --git a/features/step_definitions/cap_commands.rb b/features/step_definitions/cap_commands.rb index e8da31f6..2d6f30c9 100644 --- a/features/step_definitions/cap_commands.rb +++ b/features/step_definitions/cap_commands.rb @@ -1,5 +1,5 @@ When(/^I run cap "(.*?)"$/) do |task| - @success = TestApp.cap(task) + @success, @output = TestApp.cap(task) end When(/^I run cap "(.*?)" as part of a release$/) do |task|