Skip to content

Commit

Permalink
post return codes should be 201 and not 200
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Feb 4, 2011
1 parent 3ed9506 commit e3b2dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/cases/client_spec.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e3b2dd9

Please sign in to comment.