aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-02 15:46:49 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-02 15:46:49 +0100
commitbf3114338a8221bd39039acc57b9d233738429cb (patch)
tree122886ef59b31f9eb7594e5d008c2b026d8411a6
parentaa2d91424a9aa3cf1fc5aa02db8af32bb0555124 (diff)
downloadpaludis-bf3114338a8221bd39039acc57b9d233738429cb.tar.gz
paludis-bf3114338a8221bd39039acc57b9d233738429cb.tar.xz
fix tests properly, make failures more verbose
-rw-r--r--ruby/package_id_TEST.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ruby/package_id_TEST.rb b/ruby/package_id_TEST.rb
index 670c310..95e9b88 100644
--- a/ruby/package_id_TEST.rb
+++ b/ruby/package_id_TEST.rb
@@ -159,12 +159,12 @@ module Paludis
keys = { "DESCRIPTION" => 1, "INHERITED" => 1, "KEYWORDS" => 1, "EAPI" => 1, "repository_mask" => 1,
"profile_mask" => 1, "DEPEND" => 1, "RDEPEND" => 1, "PDEPEND" => 1, "LICENSE" => 1, "PROVIDE" => 1,
"RESTRICT" => 1, "SRC_URI" => 1, "HOMEPAGE" => 1, "EBUILD" => 1, "PROPERTIES" => 1, "IUSE" => 1,
- "PALUDIS_CHOICES" => 1, "DEFINED_PHASES" => 1, "SLOT" => 1, "STDERR" => 1, }
+ "PALUDIS_CHOICES" => 1, "DEFINED_PHASES" => 1, "SLOT" => 1 }
pid_testrepo.each_metadata do | key |
- assert keys.has_key?(key.raw_name), "no key #{key.raw_name}"
+ assert keys.has_key?(key.raw_name), "no key #{key.raw_name} -> #{key.value}"
keys.delete key.raw_name
end
- assert keys.empty?, "keys is #{keys}"
+ assert keys.empty?, "keys are #{keys.map { | k, v | k + ' -> ' + pid_testrepo[k].value }.join ', '}"
end
def test_masked?