##// END OF EJS Templates
Add a test for my page with all blocks....
Jean-Philippe Lang -
r10707:127a2508fadb
parent child
Show More
@@ -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