Skip to content

Commit

Permalink
Started to write a RSpec on how migrations with the BatchInserter sho…
Browse files Browse the repository at this point in the history
…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.
25 changes: 25 additions & 0 deletions test/neo4j/batch_inserter_spec.rb
@@ -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

0 comments on commit a7cfc09

Please sign in to comment.