Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to write a RSpec on how migrations with the BatchInserter sho…
…uld look like. Not sure about the API. [#108]
- Loading branch information
andreas
committed
Feb 13, 2010
1 parent
c482b7e
commit a7cfc09
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/../../lib") | ||
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/..") | ||
|
||
require 'neo4j' | ||
require 'spec_helper' | ||
|
||
describe "Neo4j::BatchInserter" do | ||
|
||
it "should use batch_inserter for Neo4j.migrate! :batch_insert => true " do | ||
pending | ||
Neo4j.migration 1, :my_first do | ||
up do | ||
a = Neo4j::Node.new :name => 'a' | ||
b = Neo4j::Node.new :name => 'b' | ||
|
||
Neo4j::Relationship.new(:friend, a, b, :since => '2001-01-01') | ||
end | ||
down do | ||
|
||
end | ||
end | ||
|
||
Neo4j.migrate! :batch_insert => true | ||
end | ||
end |