Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the test file requires to run on ruby 1.9.2.

  • Loading branch information...
commit 02738eeeabdf85fc0d84a974a4c4980b4a22d1c2 1 parent 5515757
@dbackeus dbackeus authored
View
1  Rakefile
@@ -21,7 +21,6 @@ desc "Run the test suite"
task :test do
rg = command?(:rg)
Dir['test/**/*_test.rb'].each do |f|
- #rg ? sh("rg #{f}") : ruby(f)
ruby(f)
end
end
View
2  test/job_hooks_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Resque::Job before_perform" do
include PerformJob
View
2  test/job_plugins_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Multiple plugins with multiple hooks" do
include PerformJob
View
2  test/plugin_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Resque::Plugin finding hooks" do
module SimplePlugin
View
2  test/resque-web_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
require 'resque/server/test_helper'
# Root path test
View
2  test/resque_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Resque" do
setup do
View
2  test/worker_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Resque::Worker" do
setup do
Please sign in to comment.
Something went wrong with that request. Please try again.