test/coop/api_object/test_group.rb in coop-1.0.1 vs test/coop/api_object/test_group.rb in coop-1.1.0
- old
+ new
@@ -32,10 +32,10 @@
assert_equal "/statuses/123456", @group.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