Sha256: 27393469467d0f1b06562cf9afba5b2c83782e43285c4a93c9976c3691c1eff3
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 Bytes
Contents
require File.expand_path('spec/spec_helper') require 'geoff-importer' describe Geoff::Importer do let(:db_path) { './db/test'} let(:geoff_string) { '(A) {"name": "Alice"}' } context 'running db' do it 'raises error if db is passed in as string' do db = Java::OrgNeo4jKernel::EmbeddedGraphDatabase.new(db_path) # debugger expect { Geoff::Importer.import(geoff_string, db_path) }.to raise_error db.shutdown end it 'inserts geoff into the db when passed with db instance' do db = Java::OrgNeo4jKernel::EmbeddedGraphDatabase.new(db_path) Geoff::Importer.import(geoff_string, db) db.shutdown end end context 'non-running db' do it 'inserts geoff into the db' do Geoff::Importer.import(geoff_string, db_path) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geoff-importer-0.0.2 | spec/integration/importer_spec.rb |
geoff-importer-0.0.1 | spec/integration/importer_spec.rb |