Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add tests for status sharing

  • Loading branch information...
commit 4d3ede619cbda6d77064ebc0351960190b0be323 1 parent 45a3c12
Magnus von Koeller authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 spec/cases/api_spec.rb
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.