Sha256: 1485856a2540a91d25eaa17340897ce83952817c127090e70ec9b02f935d716e

Contents?: true

Size: 673 Bytes

Versions: 3

Compression:

Stored size: 673 Bytes

Contents

$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
SimpleCov.start
require 'iprofiler'
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 expect_post(url, body, result = nil)
  a_request(:post, url).with({
    :body => fixture(body).read,
    :headers => { :content_type => 'application/xml' }
  }).should have_been_made.once
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iprofiler-0.1.2 spec/helper.rb
iprofiler-0.1.1 spec/helper.rb
iprofiler-0.1.0 spec/helper.rb