File: disable_bundler.feature

package info (click to toggle)
ruby-aruba 2.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,972 kB
  • sloc: ruby: 7,151; javascript: 6,850; makefile: 5
file content (32 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (3)
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