spec/shelly/app_spec.rb in shelly-0.0.58 vs spec/shelly/app_spec.rb in shelly-0.0.59

- old
+ new

@@ -371,6 +371,15 @@ describe "#edit_billing_url" do it "should return link to edit billing page for app" do @app.edit_billing_url.should == "http://shellyapp.example.com/apps/foo-staging/billing/edit" end end + + describe "#open" do + it "should open returned domain with launchy" do + @client.should_receive(:app).with("foo-staging"). + and_return({"domain" => "example.com"}) + Launchy.should_receive(:open).with("http://example.com") + @app.open + end + end end