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
This commit is contained in:
Jean-Philippe Lang 2012-12-03 22:06:04 +00:00
parent 2844e90902
commit 127a2508fa

View File

@ -58,6 +58,17 @@ class MyControllerTest < ActionController::TestCase
end end
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 def test_my_account_should_show_editable_custom_fields
get :account get :account
assert_response :success assert_response :success