Skip to content

Commit f8417ff

Browse files
committed
Embedded helper.rb into test_helper.rb
1 parent c64760b commit f8417ff

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Rakefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ task(:set_env_pure) { ENV['JSON'] = 'pure' }
107107

108108
UndocumentedTestTask.new do |t|
109109
t.name = 'do_test_pure'
110-
t.libs << 'test/lib'
111-
t.ruby_opts << "-rhelper"
112110
t.test_files = FileList['test/json/*_test.rb']
113111
t.verbose = true
114112
t.options = '-v'
@@ -187,7 +185,6 @@ if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
187185

188186
UndocumentedTestTask.new do |t|
189187
t.name = 'do_test_ext'
190-
t.libs << 'test/lib'
191188
t.test_files = FileList['test/json/*_test.rb']
192189
t.verbose = true
193190
t.options = '-v'
@@ -266,8 +263,6 @@ else
266263

267264
UndocumentedTestTask.new do |t|
268265
t.name = 'do_test_ext'
269-
t.libs << "test/lib"
270-
t.ruby_opts << '-rhelper'
271266
t.test_files = FileList['test/json/*_test.rb']
272267
t.verbose = true
273268
t.options = '-v'

test/json/test_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@
1515
require 'byebug'
1616
rescue LoadError
1717
end
18+
19+
unless defined?(Test::Unit::CoreAssertions)
20+
require "core_assertions"
21+
Test::Unit::TestCase.include Test::Unit::CoreAssertions
22+
end

test/lib/helper.rb

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)