mirror of
https://github.com/redmine/redmine.git
synced 2026-03-06 04:21:23 +01:00
Fixed invalid search link on the new project form (#20565).
git-svn-id: http://svn.redmine.org/redmine/trunk@14614 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -118,6 +118,15 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_new_should_not_display_invalid_search_link
|
||||
@request.session[:user_id] = 1
|
||||
|
||||
get :new
|
||||
assert_response :success
|
||||
assert_select '#quick-search form[action=?]', '/search'
|
||||
assert_select '#quick-search a[href=?]', '/search'
|
||||
end
|
||||
|
||||
test "#create by admin user should create a new project" do
|
||||
@request.session[:user_id] = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user