diff --git a/lib/resque/scheduler/delaying_extensions.rb b/lib/resque/scheduler/delaying_extensions.rb index 5a13cb41..e2df0baa 100644 --- a/lib/resque/scheduler/delaying_extensions.rb +++ b/lib/resque/scheduler/delaying_extensions.rb @@ -1,5 +1,4 @@ # vim:fileencoding=utf-8 -require 'resque' require_relative 'plugin' require_relative '../scheduler' diff --git a/test/resque-web_test.rb b/test/resque-web_test.rb index 7ec1b7c3..b2839e2b 100644 --- a/test/resque-web_test.rb +++ b/test/resque-web_test.rb @@ -307,7 +307,7 @@ module Test test 'redirects to overview' do post '/delayed/cancel_now' assert last_response.status == 302 - assert last_response.header['Location'].include? '/delayed' + assert last_response.headers['Location'].include? '/delayed' end end @@ -316,7 +316,7 @@ module Test test 'redirects to delayed' do assert last_response.status == 302 - assert last_response.header['Location'].include? '/delayed' + assert last_response.headers['Location'].include? '/delayed' end end diff --git a/test/scheduler_test.rb b/test/scheduler_test.rb index ab47461d..d7a4208d 100644 --- a/test/scheduler_test.rb +++ b/test/scheduler_test.rb @@ -1,5 +1,6 @@ # vim:fileencoding=utf-8 require_relative 'test_helper' +require 'ostruct' context 'Resque::Scheduler' do setup do