Sha256: 1f0ff3ccc614d65ba522e45af2b3ee402e3257b31fad9112bb0f82111f1d525b

Contents?: true

Size: 915 Bytes

Versions: 2

Compression:

Stored size: 915 Bytes

Contents

require 'spec_helper'

describe LinkedIn::API::Jobs do
  describe '#jobs' do
    it "should be able to view a job listing" do
      pending "https://api.linkedin.com/v1/jobs/id=1586"
      subject.job(:id => 1586)
    end

    it "should be able to view its job bookmarks" do
      pending "https://api.linkedin.com/v1/people/~/job-bookmarks"
      subject.job_bookmarks
    end

    it "should be able to view its job suggestion" do
      pending "https://api.linkedin.com/v1/people/~/suggestions/job-suggestions"
      subject.job_suggestions
    end

    it "should be able to add a bookmark" do
      pending "https://api.linkedin.com/v1/people/~/job-bookmarks"
      response = subject.add_job_bookmark(:id => 1452577)
      response.body.should == nil
      response.code.should == "201"
    end

    it "should raise AccessDeniedError when LinkedIn returns 403 status code" do
      pending
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
linkedin2-0.0.3 spec/api/jobs_spec.rb
linkedin2-0.0.2 spec/api/jobs_spec.rb