Sha256: 47fd2a9c47bce1a5707f92e2927cf6612ce46bfd8638847b8f8f34d667dc412c
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
class RSpec::GraphRunner module Neo4j def all(usage_style = :read_write, indices = true, &block) super neo4j(usage_style, indices, &block) end def neo4j(usage_style = :read_write, indices = true, &block) for_graph('neo4j', usage_style, indices, true, neo_graph, neo_graph2, neo_graph_no_indices, block) end protected def neo_graph return @neo_graph if @neo_graph path1 = File.expand_path('tmp/spec.neo4j') dir = Pathname.new(path1) dir.rmtree if dir.exist? @neo_graph = Pacer.neo4j(path1) end def neo_graph2 return @neo_graph2 if @neo_graph2 path2 = File.expand_path('tmp/spec.neo4j.2') dir = Pathname.new(path2) dir.rmtree if dir.exist? @neo_graph2 = Pacer.neo4j(path2) end def neo_graph_no_indices return @neo_graph_no_indices if @neo_graph_no_indices path3 = File.expand_path('tmp/spec_no_indices.neo4j') dir = Pathname.new(path3) dir.rmtree if dir.exist? @neo_graph_no_indices = Pacer.neo4j(path3) @neo_graph_no_indices.drop_index :vertices @neo_graph_no_indices.drop_index :edges @neo_graph_no_indices end end include Neo4j end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacer-neo4j-1.1.1-java | lib/pacer-neo4j/rspec.rb |
pacer-neo4j-1.0.7.1-java | lib/pacer-neo4j/rspec.rb |