Fixed error message display in admin/edit_web - Rails flash handling apparently has changed
This commit is contained in:
parent
f1c5004543
commit
b3e355f4bc
4 changed files with 12 additions and 10 deletions
|
@ -155,7 +155,7 @@ class AdminControllerTest < Test::Unit::TestCase
|
|||
|
||||
#returns to the same form
|
||||
assert_success
|
||||
assert_flash_has :error
|
||||
assert @response.has_template_object?(:error)
|
||||
end
|
||||
|
||||
def test_edit_web_rename_to_already_existing_web_name
|
||||
|
@ -169,7 +169,7 @@ class AdminControllerTest < Test::Unit::TestCase
|
|||
|
||||
#returns to the same form
|
||||
assert_success
|
||||
assert_flash_has :error
|
||||
assert @response.has_template_object?(:error)
|
||||
end
|
||||
|
||||
def test_edit_web_empty_password
|
||||
|
@ -180,7 +180,7 @@ class AdminControllerTest < Test::Unit::TestCase
|
|||
|
||||
#returns to the same form
|
||||
assert_success
|
||||
assert_flash_has :error
|
||||
assert @response.has_template_object?(:error)
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue