Sha256: 948ad0c1684b4670987834fdb762d75a58b0d39ec342e3b3d48828fae8c32e49

Contents?: true

Size: 502 Bytes

Versions: 11

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'google_distance_matrix'

require 'webmock/rspec'
require 'shoulda-matchers'

WebMock.disable_net_connect!
I18n.enforce_available_locales = false

module RecordedRequestHelpers
  def recorded_request_for(name)
    File.new path_to(name)
  end

  private

  def path_to(name)
    File.join File.dirname(__FILE__), 'request_recordings', name.to_s
  end
end

RSpec.configure do |c|
  c.include RecordedRequestHelpers, :request_recordings
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
google_distance_matrix-0.7.1 spec/spec_helper.rb
google_distance_matrix-0.7.0 spec/spec_helper.rb
google_distance_matrix-0.6.7 spec/spec_helper.rb
google_distance_matrix-0.6.6 spec/spec_helper.rb
google_distance_matrix-0.6.5 spec/spec_helper.rb
google_distance_matrix-0.6.4 spec/spec_helper.rb
google_distance_matrix-0.6.3 spec/spec_helper.rb
google_distance_matrix-0.6.2 spec/spec_helper.rb
google_distance_matrix-0.6.1 spec/spec_helper.rb
google_distance_matrix-0.6.0 spec/spec_helper.rb
google_distance_matrix-0.5.0 spec/spec_helper.rb