Sha256: 97d0d30af5f9330b58afa96b87dec50e2800281839f87fa9563fb865ba725daa
Contents?: true
Size: 396 Bytes
Versions: 10
Compression:
Stored size: 396 Bytes
Contents
module Danconia module TestHelpers class << self def with_config &block old_config = Danconia.config.dup Danconia.configure &block Danconia.config = old_config end def with_rates rates with_config do |config| config.default_exchange = Exchanges::FixedRates.new rates: rates yield end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems