Sha256: dc0dad90710cd9842ff6b244ef7229f804eda7d7de9a8bbf84316006e5a369a2

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

Feature: Evaluating a Berksfile
  Scenario: Containing pure Ruby
    Given I write to "Berksfile" with:
      """
      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

2 entries across 2 versions & 1 rubygems

Version Path
berkshelf-3.0.0.beta4 features/berksfile.feature
berkshelf-3.0.0.beta3 features/berksfile.feature