summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/project_test.rb6
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?) }