summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-30 14:31:53 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-30 14:31:53 +0000
commitf04148695a4a2de305945b00433aa1462d5c901c (patch)
tree7825bbb4f40e1b5d24bcd84d478fa70d7bb9f22d /test/unit/project_test.rb
parent372b24627b70d43402d7e54dfb370bcdfe0ec8ba (diff)
downloadredmine-f04148695a4a2de305945b00433aa1462d5c901c.tar.gz
redmine-f04148695a4a2de305945b00433aa1462d5c901c.zip
Drop shoulda.
git-svn-id: http://svn.redmine.org/redmine/trunk@13676 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r--test/unit/project_test.rb20
1 files changed, 8 insertions, 12 deletions
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