spec/bamboo-client/rest_spec.rb in bamboo-client-0.0.9 vs spec/bamboo-client/rest_spec.rb in bamboo-client-0.1.0

- old
+ new

@@ -71,10 +71,11 @@ it "has a URL" do plan.url.should == "http://xserve.openqa.org:8085/rest/api/latest/plan/S2RB-REMWIN" end it "can be queued" do - http.should_receive(:post).with("/rest/api/latest/queue/S2RB-REMWIN") + http.should_receive(:cookies).and_return("some" => "cookie") + http.should_receive(:post).with("/rest/api/latest/queue/S2RB-REMWIN", {}, {"some" => "cookie"}) plan.queue end end # Plan describe Rest::Project do