Sha256: 5965beec7a3c3473fa0b9df977020f74de0bdbe6c0de055ddfa3b8bceec7ed72
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 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
4 entries across 4 versions & 1 rubygems