parent_version_1 = Version.generate!(:project => project)
parent_version_2 = Version.generate!(:project => project)
assert_equal [parent_version_1, parent_version_2].sort,
- project.rolled_up_versions.sort
+ project.rolled_up_versions.sort
end
test "#rolled_up_versions should include versions for a subproject" do
subproject_version = Version.generate!(:project => subproject)
assert_equal [parent_version_1, parent_version_2, subproject_version].sort,
- project.rolled_up_versions.sort
+ project.rolled_up_versions.sort
end
test "#rolled_up_versions should include versions for a sub-subproject" do
project.reload
assert_equal [parent_version_1, parent_version_2, sub_subproject_version].sort,
- project.rolled_up_versions.sort
+ project.rolled_up_versions.sort
end
test "#rolled_up_versions should only check active projects" do
assert !subproject.active?
assert_equal [parent_version_1, parent_version_2].sort,
- project.rolled_up_versions.sort
+ project.rolled_up_versions.sort
end
def test_shared_versions_none_sharing