test/turtle_test.rb in iq_rdf-0.0.14 vs test/turtle_test.rb in iq_rdf-0.0.15

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright 2011 Till Schulte-Coerne (innoQ Deutschland GmbH) +# Copyright 2011 innoQ Deutschland GmbH # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # @@ -10,12 +10,14 @@ # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -require 'test/test_helper' +$LOAD_PATH << File.dirname(__FILE__) +require 'test_helper' + class TurtleTest < Test::Unit::TestCase def test_basic_turtle_output document = IqRdf::Document.new('http://www.test.de/', :lang => :de) document.namespaces :foaf => 'http://xmlns.com/foaf/0.1/' @@ -43,18 +45,18 @@ assert_raise RuntimeError do IqRdf::build_full_uri_subject("bla") end document << IqRdf::build_full_uri_subject(URI.parse('http://www.xyz.de/#test'), IqRdf::build_uri('SomeType')) do |t| - t.test("testvalue") + t.sometest("testvalue") end assert_equal(<<rdf, document.to_turtle) @prefix : <http://www.test.de/>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. <http://www.xyz.de/#test> a :SomeType; - :test "testvalue". + :sometest "testvalue". rdf end def test_complex_features document = IqRdf::Document.new('http://www.umweltprobenbank.de/', :lang => :de) \ No newline at end of file