spec/ey/recipes/apply_spec.rb in engineyard-1.3.2 vs spec/ey/recipes/apply_spec.rb in engineyard-1.3.3
- old
+ new
@@ -13,9 +13,14 @@
def verify_ran(scenario)
@out.should =~ /Uploaded recipes started for #{scenario[:environment]}/
end
it_should_behave_like "it takes an environment name and an account name"
+
+ it "fails when given a bad option" do
+ ey "web enable --lots --of --bogus --options", :expect_failure => true
+ @err.should include("Unknown switches")
+ end
end
describe "ey recipes apply with an ambiguous git repo" do
given "integration"
def command_to_run(_) "recipes apply" end