Sha256: d7b974f5e9bde9440f1cf036b40e8dadbacfc02b5f91749869561c8ab550e59f

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

require 'simplecov'
SimpleCov.start

require 'active_support/test_case'
require 'active_support/core_ext/string'
require 'ndr_support/safe_path'
require 'ndr_import'
require 'yaml'

begin
  # Shim for Test::Unit vs. Minitest:
  require 'active_support/testing/autorun'
rescue LoadError
  # Rails 4+ only
end

ActiveSupport.test_order = :random if ActiveSupport.respond_to?(:test_order=)

# The default changes to UTC in Rails 4.
# TODO: ndr_support should cope...
ActiveRecord::Base.default_timezone = :local

SafePath.configure! File.dirname(__FILE__) + '/resources/filesystem_paths.yml'
NdrImport::StandardMappings.mappings = YAML.load_file(
  File.expand_path(File.dirname(__FILE__) + '/resources/standard_mappings.yml')
)

# Different Rubies report this differently:
CORRUPTED_QUOTES_MESSAGE_PATTERN = /(
  Missing\sor\sstray\squote|
  col_sep_split|
  value\safter\squoted\sfield\sisn't\sallowed
)/x

require 'mocha/minitest'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ndr_import-8.5.0 test/test_helper.rb