diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-20 11:50:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-09-20 11:50:21 +0000 |
commit | eb57fa4847dab2bdc0026ef86ad6ade0f8a5b1cf (patch) | |
tree | fd33d7addde5479c585915003df35053e204d8b3 /test/unit/project_test.rb | |
parent | 671fce04dec6c27b8089bc7492cb67bbf4e6277c (diff) | |
download | redmine-eb57fa4847dab2bdc0026ef86ad6ade0f8a5b1cf.tar.gz redmine-eb57fa4847dab2bdc0026ef86ad6ade0f8a5b1cf.zip |
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
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r-- | test/unit/project_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index c76272e7b..ffb514aa3 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -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?) } |