Sha256: 04224b91cceb99d73537262dc9cc541de37eae486658e2331bdbbe1d829b3015

Contents?: true

Size: 632 Bytes

Versions: 4

Compression:

Stored size: 632 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
  def assert_json_equal(exp, act, *a)
    assert_equal(JSI::Typelike.as_json(exp), JSI::Typelike.as_json(act), *a)
  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

4 entries across 4 versions & 1 rubygems

Version Path
ur-0.0.4 test/test_helper.rb
ur-0.0.3 test/test_helper.rb
ur-0.0.2 test/test_helper.rb
ur-0.0.1 test/test_helper.rb