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:
Jean-Philippe Lang
2015-09-20 11:50:21 +00:00
parent 671fce04de
commit eb57fa4847
3 changed files with 21 additions and 2 deletions

View File

@@ -142,6 +142,12 @@ class ProjectTest < ActiveSupport::TestCase
assert_equal true, Project.find(1).identifier_frozen?
end
def test_to_param_should_be_nil_for_new_records
project = Project.new
project.identifier = "foo"
assert_nil project.to_param
end
def test_members_should_be_active_users
Project.all.each do |project|
assert_nil project.members.detect {|m| !(m.user.is_a?(User) && m.user.active?) }