Do not fallback to string on failure app, easier for debugging, closes #1587

This commit is contained in:
José Valim
2012-01-24 13:46:21 +01:00
parent b88524027c
commit 477d9fbcba
2 changed files with 3 additions and 3 deletions

View File

@@ -52,8 +52,8 @@ class FailureTest < ActiveSupport::TestCase
end
test 'uses the proxy failure message as symbol' do
call_failure('warden' => OpenStruct.new(:message => :test))
assert_equal 'test', @request.flash[:alert]
call_failure('warden' => OpenStruct.new(:message => :invalid))
assert_equal 'Invalid email or password.', @request.flash[:alert]
assert_equal 'http://test.host/users/sign_in', @response.second["Location"]
end