Sha256: bd1d6938a407510a1a1c6339ea55a77dab54f685c8bd132e857c98743cb026ed
Contents?: true
Size: 748 Bytes
Versions: 6
Compression:
Stored size: 748 Bytes
Contents
require 'rspec' require 'decimal-money' unless defined?(SPEC_ROOT) SPEC_ROOT = File.expand_path("../", __FILE__) end # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each { |f| require f } RSpec.configure do |config| config.include(DecimalMatcher) end # Sets $VERBOSE to nil for the duration of the block and back to its original value afterwards. # # silence_warnings do # value = noisy_call # no warning voiced # end # # noisy_call # warning voiced def silence_warnings old_verbose, $VERBOSE = $VERBOSE, nil yield ensure $VERBOSE = old_verbose end def reset_i18n I18n.backend = I18n::Backend::Simple.new end
Version data entries
6 entries across 1 versions & 1 rubygems