Sha256: 106204bce3a2c0152ad5ec385976e24c522a105d1611e4a8f56fac2eab0d537a

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

require_relative '../lib/rsbe/client'
require 'rspec/its'
require 'vcr'
require 'webmock'
require 'faraday'
require 'pry'

RSpec.configure do |config|
  # protect against hitting production service
  ENV['RSBE_USER']     = nil
  ENV['RSBE_PASSWORD'] = nil
  ENV['RSBE_HOST']     = nil

  config.filter_run :focus
  config.run_all_when_everything_filtered = true

  if config.files_to_run.one?
    config.default_formatter = 'doc'
  end

  config.order = :random

  Kernel.srand config.seed

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_partial_doubles = true
  end
end

VCR.configure do |c|
  c.default_cassette_options = { allow_playback_repeats: true, record: :new_episodes }
  c.cassette_library_dir = 'spec/vcr_cassettes'
  c.configure_rspec_metadata!
  c.hook_into :webmock
  c.allow_http_connections_when_no_cassette = true
  c.filter_sensitive_data('user')     { ENV['RSBE_USER'] }
  c.filter_sensitive_data('password') { ENV['RSBE_PASSWORD'] }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rsbe-client-0.5.1 spec/spec_helper.rb
rsbe-client-0.5.0 spec/spec_helper.rb