Blame view

test/test_helper.rb 580 Bytes
dc8aa5b6   Joe Weakley   Rubocop corrections
1
  # frozen_string_literal: true
87fd11a1   Isaac Lewis   reorg
2
  
dc8aa5b6   Joe Weakley   Rubocop corrections
3
4
5
6
7
  $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
  require 'syspro'
  
  require 'pry'
  require 'minitest/autorun'
f65bf747   Joe Weakley   Added and configu...
8
9
10
11
12
13
  require 'minitest-vcr'
  require 'webmock'
  
  VCR.configure do |c|
    c.cassette_library_dir = 'test/cassettes'
    c.hook_into :webmock
d9a9cb5d   chadzink   Add portoi and co...
14
    c.allow_http_connections_when_no_cassette = true
23108441   Nathan Ockerman   Replace sensitive...
15
16
17
    c.filter_sensitive_data('<syspro_username>') { ENV['SYSPRO_USERNAME'] }
    c.filter_sensitive_data('<syspro_password>') { ENV['SYSPRO_PASSWORD'] }
    c.filter_sensitive_data('<syspro_company>') { ENV['SYSPRO_COMPANY'] }
f65bf747   Joe Weakley   Added and configu...
18
19
20
  end
  
  MinitestVcr::Spec.configure!