test/objectmanager/test_namespace.rb in activerdf-1.6.6 vs test/objectmanager/test_namespace.rb in activerdf-1.6.8
- old
+ new
@@ -51,13 +51,13 @@
assert_equal :rdfs, Namespace.prefix(Namespace.lookup(:rdfs, :Resource))
assert_equal :rdfs, Namespace.prefix(Namespace.expand(:rdfs, :Resource))
end
def test_class_localname
- assert_equal 'type', Namespace.localname(Namespace.lookup(:rdf, :type))
+ assert_equal 'type', Namespace.lookup(:rdf, :type).localname
assert_equal 'type', RDF::type.localname
- assert_equal 'Class', Namespace.localname(Namespace.lookup(:rdfs, :Class))
+ assert_equal 'Class', Namespace.lookup(:rdfs, :Class).localname
assert_equal 'Class', RDFS::Class.localname
end
def test_class_register
test = 'http://test.org/'