features/upload_command.feature in berkshelf-1.4.5 vs features/upload_command.feature in berkshelf-1.4.6
- old
+ new
@@ -214,5 +214,19 @@
And the output should not contain "Uploading vim"
And the Chef server should not have the cookbooks:
| ntp |
| vim |
And the exit status should be 0
+
+ Scenario: Raise exception uploading an invalid cookbook
+ Given a cookbook named "cookbook with spaces"
+ And I write to "Berksfile" with:
+ """
+ cookbook 'cookbook with spaces', path: './cookbook with spaces'
+ """
+ When I run `berks upload`
+ Then the output should contain:
+ """
+ The cookbook 'cookbook with spaces' has invalid filenames:
+ """
+ And the CLI should exit with the status code for error "InvalidCookbookFiles"
+