mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 02:46:13 +01:00
Fixed: Login page should not show projects link and search box if authentication is required (#3715).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5007 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,4 +21,20 @@ class LayoutTest < ActionController::IntegrationTest
|
||||
assert_response :forbidden
|
||||
assert_select "#admin-menu", :count => 0
|
||||
end
|
||||
|
||||
def test_top_menu_and_search_not_visible_when_login_required
|
||||
with_settings :login_required => '1' do
|
||||
get '/'
|
||||
assert_select "#top-menu > ul", 0
|
||||
assert_select "#quick-search", 0
|
||||
end
|
||||
end
|
||||
|
||||
def test_top_menu_and_search_visible_when_login_not_required
|
||||
with_settings :login_required => '0' do
|
||||
get '/'
|
||||
assert_select "#top-menu > ul"
|
||||
assert_select "#quick-search"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user