@@ -58,6 +58,17 class MyControllerTest < ActionController::TestCase | |||
|
58 | 58 | end |
|
59 | 59 | end |
|
60 | 60 | |
|
61 | def test_page_with_all_blocks | |
|
62 | blocks = MyController::BLOCKS.keys | |
|
63 | preferences = User.find(2).pref | |
|
64 | preferences[:my_page_layout] = {'top' => blocks} | |
|
65 | preferences.save! | |
|
66 | ||
|
67 | get :page | |
|
68 | assert_response :success | |
|
69 | assert_select 'div.mypage-box', blocks.size | |
|
70 | end | |
|
71 | ||
|
61 | 72 | def test_my_account_should_show_editable_custom_fields |
|
62 | 73 | get :account |
|
63 | 74 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now