Sha256: a8c73d90578f54c64e7527de4741aeeb20fe2cb5cdea912afa9f535142e4cf23

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

require 'coveralls'
Coveralls.wear!

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

1 entries across 1 versions & 1 rubygems

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