spec/bamboo-client/rest_spec.rb in bamboo-client-0.1.4 vs spec/bamboo-client/rest_spec.rb in bamboo-client-0.1.5
- old
+ new
@@ -47,15 +47,15 @@
client.results.should == %w[foo bar]
end
it "should be able to fetch the queue" do
- document.should_receive(:auto_expand).with(Rest::Queue, http).and_return %w[foo bar]
+ document.should_receive(:data).and_return('some' => 'data')
http.should_receive(:get).with("/rest/api/latest/queue/", nil, nil).
and_return(document)
- client.queue.should == %w[foo bar]
+ client.queue().should be_kind_of(Rest::Queue)
end
it "should be able to fetch results for a specific key" do
document.should_receive(:auto_expand).with(Rest::Result, http).and_return %w[foo bar]