Skip to content

Commit 311a5cb

Browse files
authored
test: rename test/run-test.rb to test/run.rb (#241)
This patch will suppress the `circular require considered harmful` warning when running the `test-unit test` command.
1 parent dac5141 commit 311a5cb

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ task default: :test
2727

2828
desc "Run tests"
2929
task :test do
30-
ruby("test/run-test.rb")
30+
ruby("test/run.rb")
3131
end
3232

3333
desc "Generate an artifact for GitHub Pages"
File renamed without changes.

test/test-aozora-bunko.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require_relative "helper"
2+
13
class AozoraBunkoTest < Test::Unit::TestCase
24
include Helper::PathRestorable
35

test/test-cifar.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require_relative "helper"
2+
13
class CIFARTest < Test::Unit::TestCase
24
include Helper::Sandbox
35

test/test-dataset.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require_relative "helper"
2+
13
class TestDataset < Test::Unit::TestCase
24
sub_test_case("#clear_cache!") do
35
include Helper::PathRestorable

test/test-downloader.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require_relative "helper"
2+
13
class DownloaderTest < Test::Unit::TestCase
24
include Helper::Sandbox
35

0 commit comments

Comments
 (0)