features/berksfile.feature in berkshelf-2.0.18 vs features/berksfile.feature in berkshelf-3.0.0.beta1
- old
+ new
@@ -4,10 +4,12 @@
So I can identify my syntax errors and faults
Scenario: Containing pure Ruby
Given I write to "Berksfile" with:
"""
+ source "http://localhost:26210"
+
if ENV['BACON']
puts "If you don't got bacon..."
else
puts "No bacon :'("
end
@@ -16,41 +18,37 @@
When I successfully run `berks install`
Then the output should contain:
"""
If you don't got bacon...
"""
- And the exit status should be 0
- Scenario: Calling valid DSL methods:
- Given I write to "Berksfile" with:
- """
- site :opscode
- """
- When I successfully run `berks install`
- And the exit status should be 0
-
Scenario: Containing methods I shouldn't be able to call
Given I write to "Berksfile" with:
"""
+ source "http://localhost:26210"
+
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 CLI should exit with the status code for error "BerksfileReadError"
+ And the exit status should be "BerksfileReadError"
Scenario: Containing Ruby syntax errors
Given I write to "Berksfile" with:
"""
+ source "http://localhost:26210"
+
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"