Sha256: 8d0353c64697d106387ac907d057bf8894ff38b27ef977673239deb68ccccf0e

Contents?: true

Size: 500 Bytes

Versions: 7

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

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

TEST_APP_ID = 'TEST_APP_ID'.freeze

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

7 entries across 7 versions & 1 rubygems

Version Path
money-open-exchange-rates-1.2.1 test/test_helper.rb
money-open-exchange-rates-1.2.0 test/test_helper.rb
money-open-exchange-rates-1.1.1 test/test_helper.rb
money-open-exchange-rates-1.1.0 test/test_helper.rb
money-open-exchange-rates-1.0.2 test/test_helper.rb
money-open-exchange-rates-1.0.1 test/test_helper.rb
money-open-exchange-rates-1.0.0 test/test_helper.rb