Fix cucumber spec for loading tasks from stage configs

This commit is contained in:
Sergey Ponomarev 2014-12-10 01:08:48 +03:00
parent dd9f9628b8
commit 859eec68c6
3 changed files with 15 additions and 10 deletions

View File

@ -6,6 +6,9 @@ Reverse Chronological Order:
https://github.com/capistrano/capistrano/compare/v3.3.3...HEAD https://github.com/capistrano/capistrano/compare/v3.3.3...HEAD
* Minor changes:
* Fix cucumber spec for loading tasks from stage configs (@sponomarev)
## `3.3.3` ## `3.3.3`
https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.3 https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.3
@ -33,7 +36,7 @@ https://github.com/capistrano/capistrano/compare/v3.2.1...v3.3.3
If the full unexpurgated backtrace is required then the --backtrace If the full unexpurgated backtrace is required then the --backtrace
and --trace options supply it as before. and --trace options supply it as before.
* Disable loading stages configs on `cap -T` * Disable loading stages configs on `cap -T` (@sponomarev)
* Track (anonymous) statistics, see https://github.com/capistrano/stats * Track (anonymous) statistics, see https://github.com/capistrano/stats
* Enhancements (@townsen) * Enhancements (@townsen)

View File

@ -19,12 +19,10 @@ Feature: The path to the configuration can be changed, removing the need to
Then the task is successful Then the task is successful
And contains "install" in the output And contains "install" in the output
# Feature disabled because this is not how it works, we don't load Scenario: Hide install task with configuration in a custom location
# tasks from stage files, as we expect them to be defined in ./lib/tasks And config stage file has line "desc 'Special Task'"
# Scenario: Show install task with configuration in a custom location And config stage file has line "task :special_stage_task"
# And config stage file has line "desc 'Special Task'" But the configuration is in a custom location
# And config stage file has line "task :special_stage_task" When I run "cap -T"
# But the configuration is in a custom location Then the task is successful
# When I run "cap -T" And doesn't contain "special_stage_task" in the output
# Then the task is successful
# And contains "special_stage_task" in the output

View File

@ -109,3 +109,7 @@ end
Then(/contains "(.*?)" in the output/) do |expected| Then(/contains "(.*?)" in the output/) do |expected|
expect(@output).to include(expected) expect(@output).to include(expected)
end end
Then(/doesn't contain "(.*?)" in the output/) do |expected|
expect(@output).not_to include(expected)
end