From e8acd7f94b18199b43fe68eb66f5a241b16fe481 Mon Sep 17 00:00:00 2001 From: "COLA@Redmine.local" Date: Thu, 9 Feb 2017 23:06:58 +0100 Subject: [PATCH] Added two dmsf_files to project1. --- test/unit/project_patch_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/project_patch_test.rb b/test/unit/project_patch_test.rb index 89627a1c..83d343c6 100644 --- a/test/unit/project_patch_test.rb +++ b/test/unit/project_patch_test.rb @@ -65,7 +65,7 @@ class ProjectPatchTest < RedmineDmsf::Test::UnitTest def test_dmsf_count hash = @project1.dmsf_count - assert_equal 5, hash[:files] + assert_equal 7, hash[:files] assert_equal 5, hash[:folders] end @@ -77,7 +77,7 @@ class ProjectPatchTest < RedmineDmsf::Test::UnitTest end def test_copy_dmsf - assert_equal 1, @project1.dmsf_files.visible.count + assert_equal 3, @project1.dmsf_files.visible.count assert_equal 2, @project1.dmsf_folders.visible.count assert_equal 1, @project1.file_links.visible.count assert_equal 1, @project1.folder_links.visible.count @@ -88,7 +88,7 @@ class ProjectPatchTest < RedmineDmsf::Test::UnitTest assert_equal 0, @project3.folder_links.visible.count assert_equal 0, @project3.url_links.visible.count @project3.copy_dmsf(@project1) - assert_equal 1, @project3.dmsf_files.visible.count + assert_equal 3, @project3.dmsf_files.visible.count assert_equal 2, @project3.dmsf_folders.visible.count assert_equal 1, @project3.file_links.visible.count assert_equal 1, @project3.folder_links.visible.count