Mercurial > hg > soundsoftware-site
diff test/functional/my_controller_test.rb @ 1294:3e4c3460b6ca redmine-2.2
Update to Redmine SVN revision 11972 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:01:12 +0100 |
parents | 433d4f72a19b |
children | 622f24f53b42 |
line wrap: on
line diff
--- a/test/functional/my_controller_test.rb Mon Jan 07 12:01:42 2013 +0000 +++ b/test/functional/my_controller_test.rb Fri Jun 14 09:01:12 2013 +0100 @@ -187,6 +187,11 @@ assert User.find(2).pref[:my_page_layout]['top'].include?('issuesreportedbyme') end + def test_add_invalid_block_should_redirect + post :add_block, :block => 'invalid' + assert_redirected_to '/my/page_layout' + end + def test_remove_block post :remove_block, :block => 'issuesassignedtome' assert_redirected_to '/my/page_layout'