Sha256: 05afce10f44c6c9c5f01a4789fc20f29c81166338e7d0fa46fc0a09b5e35d305

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

# require 'simplecov'
# SimpleCov.start

project_root = File.expand_path(File.dirname(__FILE__) + "/..")

require 'active_support/core_ext'
require 'chronic'
require 'hashdiff'
require 'ratis'
require 'rspec'
require 'vcr'
require 'webmock/rspec'

require "#{project_root}/lib/ratis.rb"
Dir[("#{project_root}/spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :rspec
  config.include RatisHelpers
  config.extend  VCR::RSpec::Macros
  config.treat_symbols_as_metadata_keys_with_true_values = true

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  config.order = "random"
end

HTTPI.log = false
Savon.configure do |config|
  config.log = false
end

Ratis.configure do |config|
  config.endpoint   = 'http://soap.valleymetro.org/cgi-bin-soap-web-262/soap.cgi'
  config.namespace  = 'PX_WEB'
  config.timeout    = 5
end

VCR.configure do |c|
  c.hook_into :webmock
  c.ignore_hosts 'www.valleymetro.org', 'alerts.valleymetro.org'
  c.configure_rspec_metadata!
  # c.preserve_exact_body_bytes { true }
  c.ignore_localhost                        = true
  c.cassette_library_dir                    = "spec/support/vcr_cassettes"
  c.allow_http_connections_when_no_cassette = true
  c.default_cassette_options                = { allow_playback_repeats: true, match_requests_on: [:method, :uri, :headers] }
  # c.debug_logger                            = File.open(Rails.root.join('log/vcr.log'), 'w')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ratis-3.3.7 spec/spec_helper.rb