diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-26 16:14:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-12-26 16:14:55 +0000 |
commit | 04455783a76e1a34e35c575fe3e7839bc1aa0609 (patch) | |
tree | a670bc732a93dd8a7014b5447b8a3b17abb20ee8 /test/unit/project_test.rb | |
parent | c36c924714cbbbf88f825b1513a0d22a3b513332 (diff) | |
download | redmine-04455783a76e1a34e35c575fe3e7839bc1aa0609.tar.gz redmine-04455783a76e1a34e35c575fe3e7839bc1aa0609.zip |
Fixed: project copy doesn't copy group memberships (#3975).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3250 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r-- | test/unit/project_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index f1dcb3418..c1fc84330 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -633,15 +633,15 @@ class ProjectTest < ActiveSupport::TestCase assert_not_equal source_relation_cross_project.id, copied_relation.id end - should "copy members" do + should "copy memberships" do assert @project.valid? assert @project.members.empty? assert @project.copy(@source_project) - assert_equal @source_project.members.size, @project.members.size - @project.members.each do |member| - assert member - assert_equal @project, member.project + assert_equal @source_project.memberships.size, @project.memberships.size + @project.memberships.each do |membership| + assert membership + assert_equal @project, membership.project end end |