Sha256: 30dfceef5870d31decafcd6eda24a07db374ced700bcd23f4bddd4e74dfb1aa6

Contents?: true

Size: 678 Bytes

Versions: 9

Compression:

Stored size: 678 Bytes

Contents

# Author:: Eyal Oren
# Copyright:: (c) 2005-2006
# License:: LGPL

require 'test/unit'
require 'active_rdf'
require 'federation/connection_pool'
require "#{File.dirname(__FILE__)}/../common"

class TestResourceWriting < Test::Unit::TestCase
  def setup
		ConnectionPool.clear
  end

  def test_update_value
    Namespace.register(:ar, 'http://activerdf.org/test/')
    adapter = get_write_adapter

    eyal = RDFS::Resource.new 'http://activerdf.org/test/eyal'
    assert_raises(ActiveRdfError) { eyal.age = 18 }
   
    adapter.load "#{File.dirname(__FILE__)}/../test_person_data.nt"
    assert_nothing_raised { eyal.age = 18 }
    assert_equal ['18','27'], eyal.age
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
activerdf-1.2.1 test/objectmanager/test_resource_writing.rb
activerdf-1.2.2 test/objectmanager/test_resource_writing.rb
activerdf-1.2.3 test/objectmanager/test_resource_writing.rb
activerdf-1.2 test/objectmanager/test_resource_writing.rb
activerdf-1.0 test/objectmanager/test_resource_writing.rb
activerdf-1.3.1 test/objectmanager/test_resource_writing.rb
activerdf-1.1 test/objectmanager/test_resource_writing.rb
activerdf-1.3 test/objectmanager/test_resource_writing.rb
activerdf-1.4 test/objectmanager/test_resource_writing.rb