From f04148695a4a2de305945b00433aa1462d5c901c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 30 Nov 2014 14:31:53 +0000 Subject: Drop shoulda. git-svn-id: http://svn.redmine.org/redmine/trunk@13676 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'test/unit/project_test.rb') diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 62ecf5293..4723b4638 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -481,7 +481,8 @@ class ProjectTest < ActiveSupport::TestCase project = Project.generate! parent_version_1 = Version.generate!(:project => project) parent_version_2 = Version.generate!(:project => project) - assert_same_elements [parent_version_1, parent_version_2], project.rolled_up_versions + assert_equal [parent_version_1, parent_version_2].sort, + project.rolled_up_versions.sort end test "#rolled_up_versions should include versions for a subproject" do @@ -491,11 +492,8 @@ class ProjectTest < ActiveSupport::TestCase subproject = Project.generate_with_parent!(project) subproject_version = Version.generate!(:project => subproject) - assert_same_elements [ - parent_version_1, - parent_version_2, - subproject_version - ], project.rolled_up_versions + assert_equal [parent_version_1, parent_version_2, subproject_version].sort, + project.rolled_up_versions.sort end test "#rolled_up_versions should include versions for a sub-subproject" do @@ -507,11 +505,8 @@ class ProjectTest < ActiveSupport::TestCase sub_subproject_version = Version.generate!(:project => sub_subproject) project.reload - assert_same_elements [ - parent_version_1, - parent_version_2, - sub_subproject_version - ], project.rolled_up_versions + assert_equal [parent_version_1, parent_version_2, sub_subproject_version].sort, + project.rolled_up_versions.sort end test "#rolled_up_versions should only check active projects" do @@ -524,7 +519,8 @@ class ProjectTest < ActiveSupport::TestCase project.reload assert !subproject.active? - assert_same_elements [parent_version_1, parent_version_2], project.rolled_up_versions + assert_equal [parent_version_1, parent_version_2].sort, + project.rolled_up_versions.sort end def test_shared_versions_none_sharing -- cgit v1.2.3