Sha256: 3fa24a18159d2b34038c770ad76fcd285e9c3d08a378fb88013ee095174ecb97

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe 'node extension' do

  it "adds [] read accessor method for properties" do
    tom_hanks = Neo4jr::DB.instance.getNodeById(893)
    tom_hanks[:name].should == 'Hanks, Tom'
  end
  
  it 'adds [] setter accessor method for properties' do
    Neo4jr::DB.execute do |neo|
      tom_hanks = neo.getNodeById(893)
      tom_hanks[:testing] = '123'
      tom_hanks[:testing].should == '123'
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neo4jr-simple-0.1.0 spec/node_extension_spec.rb