Sha256: c97314ffdf8eb9af4ec5b2fe0cdbe63763781deb5450382479a8a756d9c505fa

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 Bytes

Contents

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

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

2 entries across 2 versions & 1 rubygems

Version Path
money-open-exchange-rates-0.4.1 test/test_helper.rb
money-open-exchange-rates-0.4.0 test/test_helper.rb