spec/shelly/cli/main_spec.rb in shelly-0.0.51 vs spec/shelly/cli/main_spec.rb in shelly-0.0.52
- old
+ new
@@ -619,10 +619,12 @@
lambda { invoke(@main, :start) }.should raise_error(SystemExit)
end
it "should show messages about billing" do
raise_conflict("state" => "no_billing")
+ @app.stub(:edit_billing_url).and_return("http://example.com/billing/edit")
$stdout.should_receive(:puts).with(red "Please fill in billing details to start foo-production.")
+ $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