diff --git a/test/resque-web_test.rb b/test/resque-web_test.rb index 7ec1b7c3..c429b05b 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.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.location.include? '/delayed' end end