test/failure_app_test.rb in devise-0.5.6 vs test/failure_app_test.rb in devise-0.6.0

- old
+ new

@@ -10,12 +10,12 @@ test 'return 302 status' do assert_equal 302, call_failure.first end - test 'return redirect location based on mapping with params' do - assert_equal '/users/sign_in', call_failure.second['Location'] + test 'return to the default redirect location' do + assert_equal '/users/sign_in?unauthenticated=true', call_failure.second['Location'] end test 'uses the proxy failure message' do warden = OpenStruct.new(:message => :test) location = call_failure('warden' => warden).second['Location'] @@ -25,8 +25,8 @@ test 'set content type to default text/plain' do assert_equal 'text/plain', call_failure.second['Content-Type'] end test 'setup a default message' do - assert_equal ['You are being redirected to /users/sign_in'], call_failure.last + assert_equal ['You are being redirected to /users/sign_in?unauthenticated=true'], call_failure.last end end