aboutsummaryrefslogtreecommitdiff
path: root/ruby/package_id_TEST.rb
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-10-01 13:14:04 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-10-01 17:55:11 +0100
commit269259dd03f9b096aebf8027b4e139f32e18b71d (patch)
treef43d1258e647af2ccfa55d03bf01c6dc946316d5 /ruby/package_id_TEST.rb
parentd1a2b50c7d803c8cbe4af8e06e829d6dbbf01634 (diff)
downloadpaludis-269259dd03f9b096aebf8027b4e139f32e18b71d.tar.gz
paludis-269259dd03f9b096aebf8027b4e139f32e18b71d.tar.xz
(ruby) Expose mask tokens
Diffstat (limited to 'ruby/package_id_TEST.rb')
-rw-r--r--ruby/package_id_TEST.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/ruby/package_id_TEST.rb b/ruby/package_id_TEST.rb
index 2ef7ab625..ebe57f39e 100644
--- a/ruby/package_id_TEST.rb
+++ b/ruby/package_id_TEST.rb
@@ -42,6 +42,10 @@ module Paludis
env.fetch_repository("testrepo").package_ids("bad/pkg").first
end
+ def pid_scm
+ env.fetch_repository("exheresrepo").package_ids("scm/scm").first
+ end
+
def pid_installed
env.fetch_repository("installed").package_ids("cat-one/pkg-one").first
end
@@ -186,6 +190,14 @@ module Paludis
assert_equal MaskOverrideReason::AcceptedUnstable, mask.override_reason
end
+ def test_mask_tokens
+ masks = pid_scm.masks
+ assert_equal 1, masks.length
+ mask = masks.first
+ assert_kind_of RepositoryMask, mask
+ assert_equal "scm", mask.token
+ end
+
def test_hash
a = pid_testrepo
b = pid_testrepo