test/objectmanager/test_namespace.rb in activerdf-1.2.2 vs test/objectmanager/test_namespace.rb in activerdf-1.2.3

- old
+ new

@@ -60,6 +60,18 @@ abc = "#{test}abc" Namespace.register :test, test assert_equal abc, Namespace.expand(:test, :abc) end + + def test_attributes + assert_nothing_raised { RDFS::domain } + assert_nothing_raised { RDF::type } + assert_raise(NameError) { FOAF::type } + + foaf = 'http://xmlns.com/foaf/0.1/' + Namespace.register :foaf, foaf + + foafname = RDFS::Resource.new(foaf + 'name') + assert_equal foafname, FOAF::name + end end