require 'test/unit' require 'voruby/resources/voregistry/voregistry_v1_0' require 'test/resources/voresource/unittest_v1_0' include VORuby::Resources::VORegistry::V1_0 class RegistryTest < ServiceTest def setup assert_nothing_raised { @res = Registry.load_from_file('test/resources/voregistry/registry_service_v1_0.xml') } end def test_full assert_equal(false, @res.full) end def test_managed_authorities assert_equal('STScI', @res.managed_authorities[0].value) end end class AuthorityTest < ResourceTest def setup assert_nothing_raised { @res = Authority.load_from_file('test/resources/voregistry/authority_resource_v1_0.xml') } end def test_managing_org assert_equal('STScI', @res.managing_org.value) end end