Sha256: 982ad17894884621beb444593d6501219c86dd9e79888d38c475f1bd2b519bb1
Contents?: true
Size: 862 Bytes
Versions: 3
Compression:
Stored size: 862 Bytes
Contents
proc { |p| $:.unshift(p) unless $:.any? { |lp| File.expand_path(lp) == p } }.call(File.expand_path('../lib', File.dirname(__FILE__))) require 'simplecov' require 'byebug' # NO EXPECTATIONS ENV["MT_NO_EXPECTATIONS"] = '' require 'minitest/autorun' require 'minitest/reporters' Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new class UrSpec < Minitest::Spec if ENV['UR_TEST_ALPHA'] # :nocov: define_singleton_method(:test_order) { :alpha } # :nocov: end def assert_json_equal(exp, act, *a) assert_equal(JSI::Typelike.as_json(exp), JSI::Typelike.as_json(act), *a) end def assert_equal exp, act, msg = nil msg = message(msg, E) { diff exp, act } assert exp == act, msg end end # register this to be the base class for specs instead of Minitest::Spec Minitest::Spec.register_spec_type(//, UrSpec) require 'ur'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ur-0.2.0 | test/test_helper.rb |
ur-0.1.1 | test/test_helper.rb |
ur-0.1.0 | test/test_helper.rb |