Sha256: 16e123d8c8bd5a1bde0efb01c78b14e8d8ff6160ebc13065a3fbcca9dc5426dd

Contents?: true

Size: 1.19 KB

Versions: 49

Compression:

Stored size: 1.19 KB

Contents

Feature: Evaluating a Berksfile
  Scenario: Containing pure Ruby
    Given I write to "Berksfile" with:
      """
      source 'https://supermarket.chef.io'

      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

49 entries across 49 versions & 1 rubygems

Version Path
berkshelf-7.0.7 features/berksfile.feature
berkshelf-6.3.4 features/berksfile.feature
berkshelf-7.0.6 features/berksfile.feature
berkshelf-7.0.5 features/berksfile.feature
berkshelf-6.3.3 features/berksfile.feature
berkshelf-7.0.4 features/berksfile.feature
berkshelf-7.0.3 features/berksfile.feature
berkshelf-7.0.2 features/berksfile.feature
berkshelf-7.0.1 features/berksfile.feature
berkshelf-7.0.0 features/berksfile.feature
berkshelf-6.3.2 features/berksfile.feature
berkshelf-6.3.1 features/berksfile.feature
berkshelf-6.3.0 features/berksfile.feature
berkshelf-6.2.2 features/berksfile.feature
berkshelf-6.2.1 features/berksfile.feature
berkshelf-6.2.0 features/berksfile.feature
berkshelf-6.1.1 features/berksfile.feature
berkshelf-6.1.0 features/berksfile.feature
berkshelf-6.0.1 features/berksfile.feature
berkshelf-6.0.0 features/berksfile.feature