aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-05-17 16:31:54 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-05-17 16:31:54 +0000
commit8e845fac4477680ae5a7cfa37da78828f7afa3bf (patch)
tree5d692420bbb5453dd627b8d26fd9b4d667ed49d0
parentf3b0917abaf1406d82f2b3f13629323be092cbd1 (diff)
downloadpaludis-8e845fac4477680ae5a7cfa37da78828f7afa3bf.tar.gz
paludis-8e845fac4477680ae5a7cfa37da78828f7afa3bf.tar.xz
Fix .mirrors tests
-rw-r--r--ruby/environment_TEST.rb5
-rw-r--r--ruby/repository_TEST.rb5
2 files changed, 8 insertions, 2 deletions
diff --git a/ruby/environment_TEST.rb b/ruby/environment_TEST.rb
index e77d464..642f147 100644
--- a/ruby/environment_TEST.rb
+++ b/ruby/environment_TEST.rb
@@ -391,7 +391,10 @@ module Paludis
def test_mirrors_star
- assert_equal ['http://a', 'http://b'], env.mirrors('*')
+ star_mirrors = env.mirrors('*')
+ assert_equal 2, star_mirrors.length
+ assert star_mirrors.include?('http://a')
+ assert star_mirrors.include?('http://b')
end
def test_named_mirror
diff --git a/ruby/repository_TEST.rb b/ruby/repository_TEST.rb
index f22a94a..69e938b 100644
--- a/ruby/repository_TEST.rb
+++ b/ruby/repository_TEST.rb
@@ -378,7 +378,10 @@ module Paludis
end
def test_mirrors
- assert_equal ['http://a', 'http://b'], repo.mirrors('cat')
+ cat_mirrors = repo.mirrors('cat')
+ assert_equal 2, cat_mirrors.length
+ assert cat_mirrors.include?('http://a')
+ assert cat_mirrors.include?('http://b')
assert repo.mirrors('dog').empty?
end
end