File: test_mimic_redefine.rb

package info (click to toggle)
ruby-oj 3.16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,852 kB
  • sloc: ansic: 19,402; ruby: 11,451; makefile: 17
file content (15 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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