Sha256: 3b5757909060a4bb599b758e1618a2ebf577eb1147207f06345c83d7899d7bc5
Contents?: true
Size: 1.08 KB
Versions: 15
Compression:
Stored size: 1.08 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 end end end
Version data entries
15 entries across 15 versions & 1 rubygems