Sha256: 6fbccf0261206cee33412c0636d409d7869a70e67c8ce156b27f3a1d54c2db48

Contents?: true

Size: 771 Bytes

Versions: 18

Compression:

Stored size: 771 Bytes

Contents

$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
SimpleCov.start
require 'linkedin'
require 'rspec'
require 'webmock/rspec'
require 'vcr'

VCR.config do |c|
  c.cassette_library_dir     = 'spec/fixtures/cassette_library'
  c.stub_with                :webmock
  c.ignore_localhost         = true
  c.default_cassette_options = { :record => :none }
end

RSpec.configure do |c|
  c.extend VCR::RSpec::Macros
end

def linkedin_url(url)
  url =~ /^http/ ? url : "https://api.linkedin.com#{url}"
end

def expect_post(url, body, result = nil)
  a_request(:post, linkedin_url(url)).with({
    :body => fixture(body).read,
    :headers => { :content_type => 'application/xml' }
  }).should have_been_made.once
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
linkedin-0.4.6 spec/helper.rb
linkedin-0.4.4 spec/helper.rb
linkedin-0.4.3 spec/helper.rb
linkedin-0.4.2 spec/helper.rb
linkedin-0.4.1 spec/helper.rb
linkedin-0.4.0 spec/helper.rb
crankin-0.3.8 spec/helper.rb
linkedin-0.3.7 spec/helper.rb
crankin-0.3.7 spec/helper.rb
crankin-0.3.6 spec/helper.rb
linkedin-drspin-0.3.6 spec/helper.rb
brienw-linkedin-0.3.7 spec/helper.rb
linkedin-0.3.6 spec/helper.rb
linkedin-0.3.5 spec/helper.rb
linkedin-0.3.4 spec/helper.rb
linkedin-0.3.3 spec/helper.rb
linkedin-0.3.2 spec/helper.rb
linkedin-0.3.1 spec/helper.rb