aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-15 14:59:47 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-15 14:59:47 +0100
commitcc83035284a291e37f8c72dadfcbcf5be9c890bd (patch)
tree4e2135e869cb1f46e156d4b3b6d710db333ee3b5
parentf0bf63087f9d225e17a3e1ef7587b5db2c7fd036 (diff)
downloadpaludis-cc83035284a291e37f8c72dadfcbcf5be9c890bd.tar.gz
paludis-cc83035284a291e37f8c72dadfcbcf5be9c890bd.tar.xz
sort_by returns a copy
-rw-r--r--ruby/repository_TEST.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/repository_TEST.rb b/ruby/repository_TEST.rb
index db6cc7e..2acea00 100644
--- a/ruby/repository_TEST.rb
+++ b/ruby/repository_TEST.rb
@@ -97,7 +97,7 @@ module Paludis
def test_package_ids
a = repo.package_ids "foo/bar"
assert_equal 2, a.length
- a.sort_by { | id | id.version }
+ a = a.sort_by { | id | id.version }
assert_equal VersionSpec.new("1.0"), a[0].version
assert_equal VersionSpec.new("2.0"), a[1].version