Skip to content

Commit

Permalink
consistent spacing in features [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
reset committed Dec 30, 2013
1 parent 4d270c7 commit 1fa9683
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 126 deletions.
2 changes: 0 additions & 2 deletions features/berksfile.feature
Expand Up @@ -15,7 +15,6 @@ Feature: Evaluating a Berksfile
If you don't got bacon...
"""


Scenario: Containing methods I shouldn't be able to call
Given I write to "Berksfile" with:
"""
Expand All @@ -30,7 +29,6 @@ Feature: Evaluating a Berksfile
"""
And the exit status should be "BerksfileReadError"


Scenario: Containing Ruby syntax errors
Given I write to "Berksfile" with:
"""
Expand Down
1 change: 0 additions & 1 deletion features/commands/apply.feature
Expand Up @@ -16,7 +16,6 @@ Feature: berks apply
| fake | = 1.0.0 |
| dependency | = 2.0.0 |


Scenario: Locking cookbook versions to a non-existent Chef Environment
Given the Chef Server does not have an environment named "my_env"
And the cookbook store has the cookbooks:
Expand Down
3 changes: 0 additions & 3 deletions features/commands/contingent.feature
Expand Up @@ -4,7 +4,6 @@ Feature: berks contingent
* the Chef Server is empty
* the cookbook store is empty


Scenario: When there are dependent cookbooks
Given the cookbook store has the cookbooks:
| dep | 1.0.0 |
Expand All @@ -25,7 +24,6 @@ Feature: berks contingent
* fake (1.0.0)
"""


Scenario: When there are no dependent cookbooks
Given the cookbook store has the cookbooks:
| fake | 1.0.0 |
Expand All @@ -39,7 +37,6 @@ Feature: berks contingent
There are no cookbooks contingent upon 'dep' defined in this Berksfile
"""


Scenario: When the cookbook is not in the Berksfile
Given I have a Berksfile pointing at the local Berkshelf API
And I successfully run `berks contingent dep`
Expand Down
3 changes: 0 additions & 3 deletions features/commands/cookbook.feature
Expand Up @@ -3,7 +3,6 @@ Feature: berks cookbook
When I successfully run `berks cookbook sparkle_motion`
Then I should have a new cookbook skeleton "sparkle_motion"


Scenario Outline: With various options
When I successfully run `berks cookbook sparkle_motion --<option>`
Then I should have a new cookbook skeleton "sparkle_motion" with <feature> support
Expand All @@ -19,7 +18,6 @@ Feature: berks cookbook
| skip-vagrant | no Vagrant |
| skip-test-kitchen | no Test Kitchen |


Scenario Outline: When a required supporting gem is not installed
Given the gem "<gem>" is not installed
When I successfully run `berks cookbook sparkle_motion --<option>`
Expand All @@ -30,7 +28,6 @@ Feature: berks cookbook
| foodcritic | Foodcritic | foodcritic |
| scmversion | SCMVersion | thor-scmversion |


Scenario: When bundler is not installed
Given the gem "bundler" is not installed
When I successfully run `berks cookbook sparkle_motion`
Expand Down
2 changes: 0 additions & 2 deletions features/commands/init.feature
Expand Up @@ -11,13 +11,11 @@ Feature: berks init
"""
And the output should contain "Successfully initialized"


Scenario: initializing a path that does not contain a cookbook
Given a directory named "not_a_cookbook"
When I run `berks init not_a_cookbook`
And the exit status should be "NotACookbook"


Scenario: initializing with no value given for target
Given I write to "metadata.rb" with:
"""
Expand Down
34 changes: 0 additions & 34 deletions features/commands/install.feature
Expand Up @@ -4,7 +4,6 @@ Feature: berks install
* the Chef Server is empty
* the cookbook store is empty


Scenario: installing the version that best satisfies our demand
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -22,7 +21,6 @@ Feature: berks install
And the cookbook store should have the cookbooks:
| berkshelf | 2.0.0 |


Scenario: installing an explicit version demand
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -40,7 +38,6 @@ Feature: berks install
And the cookbook store should have the cookbooks:
| berkshelf | 1.0.0 |


Scenario: installing demands from all groups
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -66,7 +63,6 @@ Feature: berks install
| ruby | 1.0.0 |
| elixir | 1.0.0 |


Scenario: installing a demand that has already been installed
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -83,7 +79,6 @@ Feature: berks install
Using hostsfile (1.0.1)
"""


Scenario: installing a single groups of demands with the --only flag
Given the cookbook store has the cookbooks:
| takeme | 1.0.0 |
Expand All @@ -97,7 +92,6 @@ Feature: berks install
Then the output should contain "Using takeme (1.0.0)"
Then the output should not contain "Using notme (1.0.0)"


Scenario: installing multiple groups of demands with the --only flag
Given the cookbook store has the cookbooks:
| takeme | 1.0.0 |
Expand All @@ -111,7 +105,6 @@ Feature: berks install
Then the output should contain "Using takeme (1.0.0)"
Then the output should contain "Using notme (1.0.0)"


Scenario: skipping a single group to install with the --except flag
Given the cookbook store has the cookbooks:
| takeme | 1.0.0 |
Expand All @@ -125,7 +118,6 @@ Feature: berks install
Then the output should contain "Using takeme (1.0.0)"
Then the output should not contain "Using notme (1.0.0)"


Scenario: skipping multiple groups to install with the --except flag
Given the cookbook store has the cookbooks:
| takeme | 1.0.0 |
Expand All @@ -139,7 +131,6 @@ Feature: berks install
Then the output should not contain "Using takeme (1.0.0)"
Then the output should not contain "Using notme (1.0.0)"


Scenario: installing a demand from a path location
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -152,7 +143,6 @@ Feature: berks install
Using example_cookbook (0.5.0) path: '
"""


Scenario: installing a Berksfile from a remote directory that contains a path location
Given I have a Berksfile at "subdirectory" pointing at the local Berkshelf API with:
"""
Expand All @@ -164,7 +154,6 @@ Feature: berks install
Using example_cookbook (0.5.0) path: '
"""


Scenario: installing a demand from a Git location
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -180,7 +169,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (1.0.0) git: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'master'
"""


Scenario: installing a demand from a Git location that has already been installed
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -194,7 +182,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (1.0.0) git: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'master'
"""


Scenario: installing a Berksfile that contains a Git location with a rel
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -210,7 +197,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (1.0.0) github: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'rel' at ref: '93f5768b7d14df45e10d16c8bf6fe98ba3ff809a'
"""


Scenario: installing a Berksfile that contains a Git location with a tag
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -226,7 +212,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (0.2.0) git: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'v0.2.0' at ref: '70a527e17d91f01f031204562460ad1c17f972ee'
"""


Scenario: installing a Berksfile that contains a Git location with a ref
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -242,7 +227,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (0.2.0) git: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with ref: '70a527e17d91f01f031204562460ad1c17f972ee'
"""


Scenario: installing a Berksfile that contains a Git location with an abbreviated ref
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand Down Expand Up @@ -273,7 +257,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (0.2.0) github: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'v0.2.0' at ref: '70a527e17d91f01f031204562460ad1c17f972ee'
"""


Scenario: installing a Berksfile that contains a GitHub location ending in .git
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -286,7 +269,6 @@ Feature: berks install
"""
And the exit status should be "InvalidGitHubIdentifier"


Scenario: installing a Berksfile that contains a Github location and protocol git
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -302,7 +284,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (0.2.0) github: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'v0.2.0' at ref: '70a527e17d91f01f031204562460ad1c17f972ee'
"""


Scenario: installing a Berksfile that contains a Github location and protocol https
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -318,7 +299,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (0.2.0) github: 'https://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'v0.2.0' at ref: '70a527e17d91f01f031204562460ad1c17f972ee'
"""


# GitHub doesn't permit anonymous SSH access, so we are going to get a
# failure message back. That's okay, if GitHub tells us our key was denied,
# we know the connection has made it that far.
Expand All @@ -333,7 +313,6 @@ Feature: berks install
Permission denied (publickey).
"""


Scenario: installing a Berksfile that contains a Github location and an unsupported protocol
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -346,7 +325,6 @@ Feature: berks install
"""
And the exit status should be "InvalidGitURI"


Scenario: running install when current project is a cookbook and the 'metadata' is specified
Given a cookbook named "sparkle_motion"
And I cd to "sparkle_motion"
Expand All @@ -360,7 +338,6 @@ Feature: berks install
Using sparkle_motion (0.0.0)
"""


Scenario: running install when current project is a cookbook and the 'metadata' is specified with a path
Given a cookbook named "fake"
And I have a Berksfile pointing at the local Berkshelf API with:
Expand All @@ -373,7 +350,6 @@ Feature: berks install
Using fake (0.0.0)
"""


Scenario: running install when a Berksfile.lock is present
Given the Chef Server has cookbooks:
| bacon | 0.1.0 |
Expand All @@ -400,7 +376,6 @@ Feature: berks install
Installing bacon (0.2.0)
"""


Scenario: running install with no Berksfile or Berksfile.lock
When I run `berks install`
Then the output should contain:
Expand All @@ -409,7 +384,6 @@ Feature: berks install
"""
And the exit status should be "BerksfileNotFound"


Scenario: running install when the Cookbook is not found on the remote site
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -423,7 +397,6 @@ Feature: berks install
"""
And the exit status should be "NoSolutionError"


Scenario: installing a Berksfile that has a Git location source with an invalid Git URI
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -436,7 +409,6 @@ Feature: berks install
"""
And the exit status should be "InvalidGitURI"


Scenario: installing when there are sources with duplicate names defined in the same group
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -450,7 +422,6 @@ Feature: berks install
"""
And the exit status should be "DuplicateDependencyDefined"


Scenario: when a Git demand points to a branch that does not satisfy the version constraint
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -464,7 +435,6 @@ Feature: berks install
"""
And the exit status should be "CookbookValidationFailure"


Scenario: when a Git demand is defined and a cookbook of the same name and version is already in the cookbook store
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -480,7 +450,6 @@ Feature: berks install
Using berkshelf-cookbook-fixture (1.0.0) git: 'git://github.com/RiotGames/berkshelf-cookbook-fixture.git' with branch: 'v1.0.0' at ref: 'b4f968c9001ad8de30f564a2107fab9cfa91f771'
"""


Scenario: with a cookbook definition containing an invalid option
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -493,7 +462,6 @@ Feature: berks install
"""
And the exit status should be "InternalError"


Scenario: with a git error during download
Given I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -508,7 +476,6 @@ Feature: berks install
"""
And the exit status should be "GitError"


Scenario: transitive dependencies in metadata
Given the cookbook store contains a cookbook "fake" "1.0.0" with dependencies:
| bacon | >= 0.0.0 |
Expand All @@ -534,7 +501,6 @@ Feature: berks install
Installing bacon (0.2.0)
"""


Scenario: transitive dependencies in metadata when cookbooks are downloaded
Given the cookbook store contains a cookbook "fake" "1.0.0" with dependencies:
| bacon | >= 0.0.0 |
Expand Down
3 changes: 0 additions & 3 deletions features/commands/list.feature
Expand Up @@ -19,7 +19,6 @@ Feature: berks list
* fake2 (1.0.1)
"""


Scenario: Running the list command when the dependencies aren't downloaded
And I have a Berksfile pointing at the local Berkshelf API with:
"""
Expand All @@ -34,7 +33,6 @@ Feature: berks list
"""
And the exit status should be "CookbookNotFound"


Scenario: Running the list command when the lockfile isn't present
Given the cookbook store has the cookbooks:
| fake | 1.0.0 |
Expand All @@ -49,7 +47,6 @@ Feature: berks list
"""
And the exit status should be "CookbookNotFound"


Scenario: Running the list command with no dependencies defined
Given I have a Berksfile pointing at the local Berkshelf API
When I successfully run `berks list`
Expand Down

0 comments on commit 1fa9683

Please sign in to comment.