spec/shelly/cli/main_spec.rb in shelly-0.2.0 vs spec/shelly/cli/main_spec.rb in shelly-0.2.1

- old
+ new

@@ -772,12 +772,13 @@ $stdout.should_receive(:puts).with(red "Visit: http://example.com/billing/edit") @client.stub(:shellyapp_url).and_return("http://example.com") lambda { invoke(@main, :start) }.should raise_error(SystemExit) end - it "should show messge about payment declined" do - raise_conflict("state" => "payment_declined") - $stdout.should_receive(:puts).with(red "Not starting. Invoice for cloud 'foo-production' was declined.") + it "should show messge about app turning off" do + raise_conflict("state" => "turning_off") + $stdout.should_receive(:puts).with(red "Not starting: cloud 'foo-production' is turning off. +Wait until cloud is in 'turned off' state and try again.") lambda { invoke(@main, :start) }.should raise_error(SystemExit) end it "should show message about blocked deploy" do exception = Shelly::Client::LockedException.new("message" => "reason of block")