Improved error handling in wiki/save (ticket:153)

This commit is contained in:
Alexey Verkhovsky 2005-05-09 05:16:20 +00:00
parent 7aac9e3690
commit 4053380fd4
3 changed files with 12 additions and 12 deletions

View file

@ -556,7 +556,7 @@ class WikiControllerTest < Test::Unit::TestCase
'content' => @home.revisions.last.content.dup,
'author' => 'SomeOtherAuthor'}, {:return_to => '/wiki1/show/HomePage'}
assert_redirect_url '/wiki1/show/HomePage'
assert_redirected_to :action => 'edit', :web => 'wiki1', :id => 'HomePage'
assert_flash_has :error
assert r.flash[:error].kind_of?(Instiki::ValidationError)