Sha256: 40cb3a058f88b6af7e2bdccf47e7362b0ae7b7b9a2167ff2ed668fc4781931ed
Contents?: true
Size: 666 Bytes
Versions: 4
Compression:
Stored size: 666 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Neo4jr::DB do it 'should fail the transaction if an error happens and then propgate the original exception' do lambda{ Neo4jr::DB.execute do |neo| raise SystemCallError, 'testing' end }.should raise_error(SystemCallError) end it 'should retreive nodes by string' do lambda{ Neo4jr::DB.getNodeById("0") }.should_not raise_error end it 'accepts a hash when creating a node' do node_created = Neo4jr::DB.execute do |embedded_neo| embedded_neo.create_node(:a => 'b') end node_created[:a].should == 'b' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
neo4jr-simple-0.2.2 | spec/db_spec.rb |
neo4jr-simple-0.2.1 | spec/db_spec.rb |
neo4jr-simple-0.2.0 | spec/db_spec.rb |
neo4jr-simple-0.1.8 | spec/db_spec.rb |