diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-03 22:06:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-03 22:06:04 +0000 |
commit | 127a2508fadbff750b6f072261b6f95080eed5fd (patch) | |
tree | ecb931795e24185b95bd633ebc579e590948ef65 /test/functional/my_controller_test.rb | |
parent | 2844e9090238fb24a28a89506aab24d8f381e4f3 (diff) | |
download | redmine-127a2508fadbff750b6f072261b6f95080eed5fd.tar.gz redmine-127a2508fadbff750b6f072261b6f95080eed5fd.zip |
Add a test for my page with all blocks.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10934 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/my_controller_test.rb')
-rw-r--r-- | test/functional/my_controller_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index f5f5f06b1..7fe581f2f 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -58,6 +58,17 @@ class MyControllerTest < ActionController::TestCase end end + def test_page_with_all_blocks + blocks = MyController::BLOCKS.keys + preferences = User.find(2).pref + preferences[:my_page_layout] = {'top' => blocks} + preferences.save! + + get :page + assert_response :success + assert_select 'div.mypage-box', blocks.size + end + def test_my_account_should_show_editable_custom_fields get :account assert_response :success |