Permalink
Browse files

add tests for status sharing

  • Loading branch information...
1 parent 45a3c12 commit 4d3ede619cbda6d77064ebc0351960190b0be323 Magnus von Koeller committed Oct 21, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/cases/api_spec.rb
View
@@ -44,6 +44,13 @@
client.search(:first_name => "Javan", :fields => ["num_results", "total"]).should be_an_instance_of(LinkedIn::Mash)
end
+ it "should be able to share a new status" do
+ stub_request(:post, "https://api.linkedin.com/v1/people/~/shares").to_return(:body => "", :status => 201)
+ response = client.add_share(:comment => "Testing, 1, 2, 3")
+ response.body.should == ""
+ response.code.should == "201"
+ end
+
context "Company API" do
use_vcr_cassette

0 comments on commit 4d3ede6

Please sign in to comment.