Skip to content

Commit

Permalink
Use require_relative in JSON tests
Browse files Browse the repository at this point in the history
to prevent them from conflicting with yarp/test_helper
  • Loading branch information
k0kubun authored and hsbt committed Aug 28, 2023
1 parent 7ec73ad commit 67f223f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/json_addition_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'
require 'json/add/core'
require 'json/add/complex'
require 'json/add/rational'
Expand Down
2 changes: 1 addition & 1 deletion tests/json_common_interface_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'
require 'stringio'
require 'tempfile'

Expand Down
2 changes: 1 addition & 1 deletion tests/json_encoding_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'

class JSONEncodingTest < Test::Unit::TestCase
include JSON
Expand Down
2 changes: 1 addition & 1 deletion tests/json_ext_parser_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'

class JSONExtParserTest < Test::Unit::TestCase
if defined?(JSON::Ext::Parser)
Expand Down
2 changes: 1 addition & 1 deletion tests/json_fixtures_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'

class JSONFixturesTest < Test::Unit::TestCase
def setup
Expand Down
2 changes: 1 addition & 1 deletion tests/json_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# encoding: utf-8
# frozen_string_literal: false

require 'test_helper'
require_relative 'test_helper'

class JSONGeneratorTest < Test::Unit::TestCase
include JSON
Expand Down
2 changes: 1 addition & 1 deletion tests/json_generic_object_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'

class JSONGenericObjectTest < Test::Unit::TestCase
include JSON
Expand Down
2 changes: 1 addition & 1 deletion tests/json_parser_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8
# frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'
require 'stringio'
require 'tempfile'
require 'ostruct'
Expand Down
2 changes: 1 addition & 1 deletion tests/json_string_matching_test.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#frozen_string_literal: false
require 'test_helper'
require_relative 'test_helper'
require 'time'

class JSONStringMatchingTest < Test::Unit::TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/ractor_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
# frozen_string_literal: false

require 'test_helper'
require_relative 'test_helper'

class JSONInRactorTest < Test::Unit::TestCase
def test_generate
Expand Down

0 comments on commit 67f223f

Please sign in to comment.