Sha256: 034894c6299a8046ef708fb00dfa9da58e2d08f261972b77a289bb328ce7c195

Contents?: true

Size: 1.19 KB

Versions: 10

Compression:

Stored size: 1.19 KB

Contents

Feature: Evaluating a Berksfile
  Scenario: Containing pure Ruby
    Given I write to "Berksfile" with:
      """
      source 'https://api.berkshelf.com'

      if ENV['BACON']
        puts "If you don't got bacon..."
      else
        puts "No bacon :'("
      end
      """
    And the environment variable BACON is "1"
    When I successfully run `berks install`
    Then the output should contain:
      """
      If you don't got bacon...
      """

  Scenario: Containing methods I shouldn't be able to call
    Given I write to "Berksfile" with:
      """
      add_location(:foo)
      """
    When I run `berks install`
    Then the output should contain:
      """
      An error occurred while reading the Berksfile:

        undefined method `add_location' for
      """
    And the exit status should be "BerksfileReadError"

  Scenario: Containing Ruby syntax errors
    Given I write to "Berksfile" with:
      """
      ptus "This is a ruby syntax error"
      """
    When I run `berks install`
    Then the output should contain:
      """
      An error occurred while reading the Berksfile:

        undefined method `ptus' for
      """
    And the exit status should be "BerksfileReadError"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
berkshelf-3.1.3 features/berksfile.feature
berkshelf-3.1.2 features/berksfile.feature
berkshelf-3.1.1 features/berksfile.feature
berkshelf-3.1.0 features/berksfile.feature
berkshelf-3.0.1 features/berksfile.feature
berkshelf-3.0.0 features/berksfile.feature
berkshelf-3.0.0.rc1 features/berksfile.feature
berkshelf-3.0.0.beta9 features/berksfile.feature
berkshelf-3.0.0.beta8 features/berksfile.feature
berkshelf-3.0.0.beta7 features/berksfile.feature