aboutsummaryrefslogtreecommitdiff
path: root/ruby/package_id_TEST.rb
diff options
context:
space:
mode:
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