diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-20 15:56:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-01-20 15:56:46 +0000 |
commit | 6e6ce7c08595fbc2b1562d89099a6d6bad769cd5 (patch) | |
tree | b01d3eebe740cafa1ed8ee0d959950b7a0873709 /test/functional/my_controller_test.rb | |
parent | 8b23d41cf92e7d9304b61a91dbd8da2e9f77987d (diff) | |
download | redmine-6e6ce7c08595fbc2b1562d89099a6d6bad769cd5.tar.gz redmine-6e6ce7c08595fbc2b1562d89099a6d6bad769cd5.zip |
Fixed that adding a blank/invalid block to my page renders a blank page (#12838).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11225 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r-- | test/functional/my_controller_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index b04219e9f..7e9677051 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -191,6 +191,11 @@ class MyControllerTest < ActionController::TestCase 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' |