1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
Feature: Disable Bundler environment
Use the @disable-bundler tag to escape from your project's Gemfile.
Scenario: Clear the Bundler environment
Given I use the fixture "cli-app"
Given a file named "features/run.feature" with:
"""
Feature: My Feature
@disable-bundler
Scenario: Check environment
When I run `env`
Then the output should not match /^BUNDLE_GEMFILE=/
@disable-bundler
Scenario: Run bundle in a fresh bundler environment
Given a file named "Gemfile" with:
\"\"\"
source 'https://rubygems.org'
\"\"\"
When I run `bundle --local`
Then the output should not contain "aruba"
Scenario: Run bundle in the existing bundler environment
Given a file named "Gemfile" with:
\"\"\"
source 'https://rubygems.org'
\"\"\"
When I run `bundle --local`
Then the output should contain "aruba"
"""
When I run `bundle exec cucumber`
Then the features should all pass
|