spec/shelly/cli/main_spec.rb in shelly-0.0.29 vs spec/shelly/cli/main_spec.rb in shelly-0.0.30
- old
+ new
@@ -732,9 +732,10 @@
@main.delete("foo-bar")
end
end
it "should return exit 1 when user doesn't type 'yes'" do
+ @app.should_not_receive(:delete)
lambda{
fake_stdin(["yes", "yes", "no"]) do
@main.delete("foo-bar")
end
}.should raise_error(SystemExit)