+
+ def test_auth_failure_callback
+ get auth_failure_path
+ assert_response :redirect
+ assert_redirected_to login_path
+
+ get auth_failure_path, :params => { :origin => "/" }
+ assert_response :redirect
+ assert_redirected_to root_path
+
+ get auth_failure_path, :params => { :origin => "http://www.google.com" }
+ assert_response :redirect
+ assert_redirected_to login_path
+ end