spec/shelly/cli/main_spec.rb in shelly-0.1.16 vs spec/shelly/cli/main_spec.rb in shelly-0.1.17
- old
+ new
@@ -400,15 +400,15 @@
invoke(@main, :add)
end
end
it "should create the app on shelly cloud and show trial information" do
- @app.stub(:attributes).and_return({"trial" => true})
+ @app.stub(:attributes).and_return({"trial" => true, "credit" => 40})
@client.stub(:shellyapp_url).and_return("http://example.com")
@app.should_receive(:create)
$stdout.should_receive(:puts).with(green "Billing information")
- $stdout.should_receive(:puts).with("Cloud created with 20 Euro credit.")
+ $stdout.should_receive(:puts).with("Cloud created with 40 Euro credit.")
$stdout.should_receive(:puts).with("Remember to provide billing details before trial ends.")
$stdout.should_receive(:puts).with("http://example.com/apps/foo-staging/billing/edit")
fake_stdin(["", ""]) do
invoke(@main, :add)
@@ -468,10 +468,9 @@
@app.should_not_receive(:add_git_remote)
fake_stdin(["foooo", "", "no"]) do
invoke(@main, :add)
end
end
-
end
end
it "should create Cloudfile" do
@app.should_receive(:create_cloudfile)