test/coop/api_object/test_status.rb in coop-1.0.1 vs test/coop/api_object/test_status.rb in coop-1.1.0

- old
+ new

@@ -14,21 +14,21 @@ def test_group_id_access assert_equal @status.group_id, 12345 end def test_post - stub_post("/groups/#{@group.id}/statuses").with({ + stub_post("/groups/12345/statuses").with({ headers: { 'Accept' => 'application/xml' }, query: { status: "Testing update" } }).to_return({ headers: { 'Location' => '/statuses/123456' } }) assert_equal "/statuses/123456", @status.post!("Testing update") end def test_post_as_cobot - stub_post("/groups/12345/statuses").with({ + stub_request(:post, "http://coopapp.com/groups/12345/statuses").with({ headers: { 'Accept' => 'application/xml' }, query: { key: "BeepBoopAPIKeyGoesHere", status: "Testing update as Cobot" } }).to_return({ headers: { 'Location' => '/statuses/123456' } }) \ No newline at end of file