mirror of
https://github.com/redmine/redmine.git
synced 2026-08-05 01:41:03 +02:00
Removes MyControllerTest#page_layout (#25297).
git-svn-id: http://svn.redmine.org/redmine/trunk@16385 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -233,25 +233,20 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
assert_equal({:days => "14"}, user.reload.pref.my_page_settings('timelog'))
|
||||
end
|
||||
|
||||
def test_page_layout
|
||||
get :page_layout
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_add_block
|
||||
post :add_block, :block => 'issuesreportedbyme'
|
||||
assert_redirected_to '/my/page_layout'
|
||||
assert_redirected_to '/my/page'
|
||||
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'
|
||||
assert_redirected_to '/my/page'
|
||||
end
|
||||
|
||||
def test_remove_block
|
||||
post :remove_block, :block => 'issuesassignedtome'
|
||||
assert_redirected_to '/my/page_layout'
|
||||
assert_redirected_to '/my/page'
|
||||
assert !User.find(2).pref[:my_page_layout].values.flatten.include?('issuesassignedtome')
|
||||
end
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ class RoutingMyTest < Redmine::RoutingTest
|
||||
should_route 'GET /my/password' => 'my#password'
|
||||
should_route 'POST /my/password' => 'my#password'
|
||||
|
||||
should_route 'GET /my/page_layout' => 'my#page_layout'
|
||||
should_route 'POST /my/add_block' => 'my#add_block'
|
||||
should_route 'POST /my/remove_block' => 'my#remove_block'
|
||||
should_route 'POST /my/order_blocks' => 'my#order_blocks'
|
||||
|
||||
Reference in New Issue
Block a user