diff --git a/Rakefile b/Rakefile index a76103b3..935dbd22 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,6 @@ require 'bundler/gem_tasks' require 'rake/testtask' Rake::TestTask.new(:test) do |test| - test.libs << 'test' #SO MUCH NOISE #test.warning = true test.pattern = 'test/**/test_*.rb' diff --git a/test/test_api.rb b/test/test_api.rb index 38685f01..41e687d7 100644 --- a/test/test_api.rb +++ b/test/test_api.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' class TestApi < Sidekiq::Test diff --git a/test/test_cli.rb b/test/test_cli.rb index d60524bc..f2389387 100644 --- a/test/test_cli.rb +++ b/test/test_cli.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/cli' require 'tempfile' diff --git a/test/test_client.rb b/test/test_client.rb index e0447503..cdd55c1f 100644 --- a/test/test_client.rb +++ b/test/test_client.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/client' require 'sidekiq/worker' diff --git a/test/test_exception_handler.rb b/test/test_exception_handler.rb index 5aaf8a2a..e9e1aecc 100644 --- a/test/test_exception_handler.rb +++ b/test/test_exception_handler.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/exception_handler' require 'stringio' require 'logger' diff --git a/test/test_extensions.rb b/test/test_extensions.rb index 36ecb36f..aff98de5 100644 --- a/test/test_extensions.rb +++ b/test/test_extensions.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq' require 'active_record' require 'action_mailer' diff --git a/test/test_fetch.rb b/test/test_fetch.rb index 121cff98..fb5f177d 100644 --- a/test/test_fetch.rb +++ b/test/test_fetch.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/fetch' class TestFetcher < Sidekiq::Test diff --git a/test/test_manager.rb b/test/test_manager.rb index b289fd31..e288f309 100644 --- a/test/test_manager.rb +++ b/test/test_manager.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/manager' class TestManager < Sidekiq::Test diff --git a/test/test_middleware.rb b/test/test_middleware.rb index 45d6a7dc..74179e5e 100644 --- a/test/test_middleware.rb +++ b/test/test_middleware.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/middleware/chain' require 'sidekiq/processor' diff --git a/test/test_processor.rb b/test/test_processor.rb index 58bc6544..9fffb77c 100644 --- a/test/test_processor.rb +++ b/test/test_processor.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/processor' class TestProcessor < Sidekiq::Test diff --git a/test/test_redis_connection.rb b/test/test_redis_connection.rb index 4a4eb85f..56528d65 100644 --- a/test/test_redis_connection.rb +++ b/test/test_redis_connection.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/redis_connection' class TestRedisConnection < Sidekiq::Test diff --git a/test/test_retry.rb b/test/test_retry.rb index c8861bc4..b527f496 100644 --- a/test/test_retry.rb +++ b/test/test_retry.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -require 'helper' +require_relative 'helper' require 'sidekiq/scheduled' require 'sidekiq/middleware/server/retry_jobs' diff --git a/test/test_scheduled.rb b/test/test_scheduled.rb index 6d117374..2809601a 100644 --- a/test/test_scheduled.rb +++ b/test/test_scheduled.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/scheduled' class TestScheduled < Sidekiq::Test diff --git a/test/test_scheduling.rb b/test/test_scheduling.rb index 43fdbef1..80f610db 100644 --- a/test/test_scheduling.rb +++ b/test/test_scheduling.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq/scheduled' class TestScheduling < Sidekiq::Test diff --git a/test/test_sidekiq.rb b/test/test_sidekiq.rb index 546e9eff..6f59433e 100644 --- a/test/test_sidekiq.rb +++ b/test/test_sidekiq.rb @@ -1,5 +1,5 @@ # encoding: utf-8 -require 'helper' +require_relative 'helper' class TestSidekiq < Sidekiq::Test describe 'json processing' do diff --git a/test/test_testing.rb b/test/test_testing.rb index 7637a1b9..f37ba164 100644 --- a/test/test_testing.rb +++ b/test/test_testing.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq' require 'sidekiq/worker' require 'active_record' diff --git a/test/test_testing_fake.rb b/test/test_testing_fake.rb index 887ff31a..9dbe1d43 100644 --- a/test/test_testing_fake.rb +++ b/test/test_testing_fake.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq' require 'sidekiq/worker' require 'active_record' diff --git a/test/test_testing_inline.rb b/test/test_testing_inline.rb index 356c5301..d7ec411b 100644 --- a/test/test_testing_inline.rb +++ b/test/test_testing_inline.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq' require 'sidekiq/worker' require 'active_record' diff --git a/test/test_web.rb b/test/test_web.rb index 9ab3c38a..f3d4596f 100644 --- a/test/test_web.rb +++ b/test/test_web.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'sidekiq' require 'sidekiq/web' require 'rack/test' diff --git a/test/test_worker_generator.rb b/test/test_worker_generator.rb index 3f475b37..8a8d936c 100644 --- a/test/test_worker_generator.rb +++ b/test/test_worker_generator.rb @@ -1,4 +1,4 @@ -require 'helper' +require_relative 'helper' require 'rails/generators/test_case' require 'generators/sidekiq/worker_generator'