Sha256: b522bc7f4853facf43426837d6cda4bb27e68fcacdf035c93de026614802f346

Contents?: true

Size: 603 Bytes

Versions: 3

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

begin
  require 'simplecov'
  SimpleCov.start
rescue LoadError
  warn 'simplecov not loaded'
end

require 'minitest/autorun'
require 'mocha/minitest'
require 'webmock/minitest'
require 'money/bank/open_exchange_rates_bank'
require 'monetize'
require 'timecop'

TEST_APP_ID = 'TEST_APP_ID'

def data_file(file)
  File.expand_path(File.join(File.dirname(__FILE__), 'data', file))
end

def add_to_webmock(subject, body_path = oer_latest_path)
  subject.app_id = TEST_APP_ID
  stub_request(:get, subject.source_url)
    .to_return(status: 200, body: File.read(body_path))
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
money-open-exchange-rates-1.4.2 test/test_helper.rb
money-open-exchange-rates-1.4.1 test/test_helper.rb
money-open-exchange-rates-1.4.0 test/test_helper.rb