spec/client/posting_client_spec.rb in threetaps-client-1.0.2 vs spec/client/posting_client_spec.rb in threetaps-client-1.0.3
- old
+ new
@@ -28,9 +28,11 @@
@posting_client.delete_posting("").class == DeleteResponse.class
end
it "should return boolean value" do
stub_post_and_json_decode
- @posting_client.exists_posting(mock("")).should be_true
+ ExistsResponse.stub!(:new).and_return mock("ExistsResponse", :exists => true)
+ ExistsResponse.should_receive(:new).with(nil)
+ @posting_client.exists_posting(mock("Posting", :to_json_for_status=>"")).exists.should be_true
end
end