1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

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
* Minor changes:
* Fix cucumber spec for loading tasks from stage configs (@sponomarev)
## `3.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
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
* 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
And contains "install" in the output
# Feature disabled because this is not how it works, we don't load
# tasks from stage files, as we expect them to be defined in ./lib/tasks
# Scenario: Show install task with configuration in a custom location
# And config stage file has line "desc 'Special Task'"
# And config stage file has line "task :special_stage_task"
# But the configuration is in a custom location
# When I run "cap -T"
# Then the task is successful
# And contains "special_stage_task" in the output
Scenario: Hide install task with configuration in a custom location
And config stage file has line "desc 'Special Task'"
And config stage file has line "task :special_stage_task"
But the configuration is in a custom location
When I run "cap -T"
Then the task is successful
And doesn't contain "special_stage_task" in the output

View file

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