1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/spec/support
Matt Brictson dd42150ddb
Invoke bundle correctly within feature tests
During the feature tests we create a separate directory with its own
`Gemfile` and use `bundle` and `bundle exec` within that directory.

However if `bundle exec` was used to run the feature tests, then a
bundler environment is already loaded, and so the test Gemfile is never
consulted. Running `bundle` doesn't have the desired effect, because
the child process inherits the bundler environment variables from the
parent process.

Bundler's solution for this problem is the `Bundle.with_clean_env`
method. This ensures that the child process doesn't inherit the parent's
bundler environment.
2017-03-19 19:47:01 -07:00
..
tasks Default to Ruby 1.9 syntax. 2016-03-10 11:39:31 -06:00
.gitignore Integration tests with Vagrant and Cucumber 2013-09-27 11:45:55 +01:00
matchers.rb Add integration tests for deploy task 2013-06-16 13:08:15 +01:00
test_app.rb Invoke bundle correctly within feature tests 2017-03-19 19:47:01 -07:00
Vagrantfile Default to Ruby 1.9 syntax. 2016-03-10 11:39:31 -06:00