From e3b2dd98f3e8505af2bdd9f6dcdc503673655c72 Mon Sep 17 00:00:00 2001 From: Josh Kalderimis Date: Fri, 4 Feb 2011 16:53:04 +0100 Subject: [PATCH] post return codes should be 201 and not 200 --- spec/cases/client_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/cases/client_spec.rb b/spec/cases/client_spec.rb index 79cfd5f5..2fe7852a 100644 --- a/spec/cases/client_spec.rb +++ b/spec/cases/client_spec.rb @@ -148,7 +148,7 @@ it "should post to a user's network stream" do stub_post("/v1/people/~/person-activities", "blank.xml") - client.update_network("Testing out the LinkedIn API").code.should == "200" + client.update_network("Testing out the LinkedIn API").code.should == "201" end it "should clear a user's current status" do @@ -189,7 +189,7 @@ subject = "Congratulations on your new position." body = "You're certainly the best person for the job!" - client.send_message(subject, body, recipients).should == "200" + client.send_message(subject, body, recipients).should == "201" end end