Sha256: 6115efe09c2f3a52cae1502131e8fe86d18b49696f3544e041a99c8c8a2c2522
Contents?: true
Size: 868 Bytes
Versions: 6
Compression:
Stored size: 868 Bytes
Contents
$:.unshift File.expand_path('..', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__) if ENV['COVERAGE'] == 't' require 'simplecov' SimpleCov.start end require 'linkedin' require 'rspec' require 'webmock/rspec' require 'vcr' VCR.configure do |c| c.cassette_library_dir = 'spec/fixtures/cassette_library' c.hook_into :webmock c.ignore_localhost = true c.default_cassette_options = { :record => :none } c.configure_rspec_metadata! end RSpec.configure do |c| c.treat_symbols_as_metadata_keys_with_true_values = true 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
6 entries across 6 versions & 3 rubygems