spec/shelly/app_spec.rb in shelly-0.2.17 vs spec/shelly/app_spec.rb in shelly-0.2.18
- old
+ new
@@ -132,22 +132,29 @@
describe "#attributes" do
before do
@response = {"web_server_ip" => "192.0.2.1",
"state" => "running",
"organization" => {
- "credit" => 23.0
+ "credit" => 23.0,
+ "details_present" => true
},
"git_info" => {
"deployed_commit_message" => "Commit message",
"deployed_commit_sha" => "52e65ed2d085eaae560cdb81b2b56a7d76",
"repository_url" => "git@winniecloud.net:example-cloud",
"deployed_push_author" => "megan@example.com"}}
@client.stub(:app).and_return(@response)
end
describe "#credit" do
- it "should return freecredit that app has" do
+ it "should return free credit that app has" do
@app.credit.should == 23.0
+ end
+ end
+
+ describe "#organization_details_present?" do
+ it "should return app's organization's details_present?" do
+ @app.organization_details_present?.should == true
end
end
it "should fetch app attributes from API and cache them" do
@client.should_receive(:app).with("foo-staging").exactly(:once).and_return(@response)