Sha256: b17cf41e6f41d0d6d5e2e4fbd8cc9504005e7d96211974055b17fe7c979afd52

Contents?: true

Size: 315 Bytes

Versions: 142

Compression:

Stored size: 315 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

$: << File.join(File.dirname(__FILE__), '..')

require 'helper'

class MimicRedefine < Minitest::Test
  def test_mimic_redefine
    require 'json'
    parser_error = JSON::ParserError
    Oj.mimic_JSON
    assert_equal(parser_error, JSON::ParserError)
  end
end # MimicSingle

Version data entries

142 entries across 142 versions & 3 rubygems

Version Path
oj-3.16.9 test/isolated/test_mimic_redefine.rb
oj-3.16.8 test/isolated/test_mimic_redefine.rb
oj-3.16.7 test/isolated/test_mimic_redefine.rb
oj-3.16.6 test/isolated/test_mimic_redefine.rb
oj-3.16.5 test/isolated/test_mimic_redefine.rb
oj-3.16.4 test/isolated/test_mimic_redefine.rb
oj-3.16.3 test/isolated/test_mimic_redefine.rb
oj-3.16.2 test/isolated/test_mimic_redefine.rb
oj-3.16.1 test/isolated/test_mimic_redefine.rb
oj-3.16.0 test/isolated/test_mimic_redefine.rb
oj-3.15.1 test/isolated/test_mimic_redefine.rb
oj-3.15.0 test/isolated/test_mimic_redefine.rb
oj-3.14.3 test/isolated/test_mimic_redefine.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/oj-3.13.2/test/isolated/test_mimic_redefine.rb
oj-3.14.2 test/isolated/test_mimic_redefine.rb
oj-3.14.1 test/isolated/test_mimic_redefine.rb
oj-3.14.0 test/isolated/test_mimic_redefine.rb
oj-3.13.23 test/isolated/test_mimic_redefine.rb
oj-3.13.22 test/isolated/test_mimic_redefine.rb
oj-3.13.21 test/isolated/test_mimic_redefine.rb