spec/shelly/app_spec.rb in shelly-0.0.48.pre2 vs spec/shelly/app_spec.rb in shelly-0.0.48.pre3
- old
+ new
@@ -163,20 +163,10 @@
it "should return path to Cloudfile" do
@app.cloudfile_path.should == "/projects/foo/Cloudfile"
end
end
- describe "#open_billing_page" do
- it "should open browser window" do
- user = mock(:token => "abc", :email => nil, :password => nil, :config_dir => "~/.shelly")
- @app.stub(:current_user).and_return(user)
- url = "#{@app.shelly.shellyapp_url}/login?api_key=abc&return_to=/apps/foo-staging/edit_billing"
- Launchy.should_receive(:open).with(url)
- @app.open_billing_page
- end
- end
-
describe "#start & #stop" do
it "should start cloud" do
@client.should_receive(:start_cloud).with("foo-staging")
@app.start
end
@@ -278,10 +268,10 @@
@app.create
@app.domains.should == %w(boo.shellyapp.com boo.example.com)
end
end
end
-
+
describe "#redeploy" do
it "should redeploy app via API" do
@client.should_receive(:redeploy).with("foo-staging")
@app.redeploy
end