aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-11 23:18:26 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-11 23:18:38 +0100
commitee28577088fc168cdf81e1b79ecdc7d7c7f4adc6 (patch)
tree8790337fe19b81f485ee63adec26173f45366316 /ruby
parent9c2ee6d96bbe00dd0b77d652613c7ad5a8dea846 (diff)
downloadpaludis-ee28577088fc168cdf81e1b79ecdc7d7c7f4adc6.tar.gz
paludis-ee28577088fc168cdf81e1b79ecdc7d7c7f4adc6.tar.xz
Don't create virtuals repos
Diffstat (limited to 'ruby')
-rw-r--r--ruby/environment_TEST.rb21
1 files changed, 1 insertions, 20 deletions
diff --git a/ruby/environment_TEST.rb b/ruby/environment_TEST.rb
index d69dd8ec8..a67dc3d61 100644
--- a/ruby/environment_TEST.rb
+++ b/ruby/environment_TEST.rb
@@ -391,11 +391,7 @@ module Paludis
end
def test_repositories
- if ENV["PALUDIS_ENABLE_VIRTUALS_REPOSITORY"] == "yes" then
- assert_equal 3, env.repositories.length
- else
- assert_equal 1, env.repositories.length
- end
+ assert_equal 1, env.repositories.length
a = env.repositories.find_all do | repo |
repo.name == "testrepo"
@@ -418,23 +414,8 @@ module Paludis
end
end
- def test_more_important_than
- if ENV["PALUDIS_ENABLE_VIRTUALS_REPOSITORY"] == "yes" then
- assert env.more_important_than('testrepo', 'virtuals')
- assert ! env.more_important_than('virtuals', 'testrepo')
- elsif ENV["PALUDIS_ENABLE_VIRTUALS_REPOSITORY"] == "no" then
- else
- throw "oops"
- end
- end
-
def test_has_repository_named?
assert env.has_repository_named?('testrepo')
- if ENV["PALUDIS_ENABLE_VIRTUALS_REPOSITORY"] == "yes" then
- assert env.has_repository_named?('virtuals')
- else
- assert ! env.has_repository_named?('virtuals')
- end
assert ! env.has_repository_named?('foobarbaz')
end
end