aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2007-12-15 23:17:59 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2007-12-15 23:17:59 +0000
commitf9f3e2fbb9b312fa72a708b2aaf1a3eb5ab05bce (patch)
tree036c54215f111c480f75bf9b124ad481cd1fbd30
parent1ce8f3ead45c8b8e1ea291187d2c96cadcf526d7 (diff)
downloadpaludis-f9f3e2fbb9b312fa72a708b2aaf1a3eb5ab05bce.tar.gz
paludis-f9f3e2fbb9b312fa72a708b2aaf1a3eb5ab05bce.tar.xz
More tests
-rw-r--r--ruby/repository_TEST.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/ruby/repository_TEST.rb b/ruby/repository_TEST.rb
index ea0024e..6062ffd 100644
--- a/ruby/repository_TEST.rb
+++ b/ruby/repository_TEST.rb
@@ -589,9 +589,21 @@ module Paludis
class TestCase_Repository < Test::Unit::TestCase
include RepositoryTestCase
- def format_key
+ def test_format_key
assert_kind_of MetadataStringKey, repo.format_key
assert_equal 'ebuild', repo.format_key.value
+ assert_kind_of MetadataStringKey, installed_repo.format_key
+ assert_equal 'vdb', installed_repo.format_key.value
+ end
+
+ def test_installed_root_key
+ assert_nil repo.installed_root_key
+ assert_kind_of MetadataFSEntryKey, installed_repo.installed_root_key
+ assert_equal '/', installed_repo.installed_root_key.value
+ end
+
+ def test_each_metadata
+ assert_respond_to repo, :each_metadata
end
end
end