Permalink
Browse files

Fix the test file requires to run on ruby 1.9.2.

  • Loading branch information...
1 parent 5515757 commit 02738eeeabdf85fc0d84a974a4c4980b4a22d1c2 @dbackeus dbackeus committed Feb 4, 2011
Showing with 6 additions and 7 deletions.
  1. +0 −1 Rakefile
  2. +1 −1 test/job_hooks_test.rb
  3. +1 −1 test/job_plugins_test.rb
  4. +1 −1 test/plugin_test.rb
  5. +1 −1 test/resque-web_test.rb
  6. +1 −1 test/resque_test.rb
  7. +1 −1 test/worker_test.rb
View
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Resque" do
setup do
View
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.expand_path('../test_helper', __FILE__)
context "Resque::Worker" do
setup do

0 comments on commit 02738ee

Please sign in to comment.