Module: Neo4j::Test
- Defined in:
- lib/neo4j-test.rb,
lib/neo4j-test/version.rb
Constant Summary collapse
- VERSION =
"1.9"- NEO_VERSION =
"1.9"
Class Method Summary collapse
-
.ensure_version!(other, edition) ⇒ Object
This can be used by dependent gems to verify the Database versions have no mismatch.
- .jars_root ⇒ Object
- .load_jars! ⇒ Object
Class Method Details
.ensure_version!(other, edition) ⇒ Object
This can be used by dependent gems to verify the Database versions have no mismatch.
17 18 19 20 |
# File 'lib/neo4j-test.rb', line 17 def self.ensure_version!(other, edition) return if ::Neo4j::Test::NEO_VERSION == other raise "Mismatch of Neo4j JAR versions. Already loaded neo4j-community JAR files '#{::Neo4j::Test::NEO_VERSION}' but neo4j-#{edition}: '#{other}'." end |
.jars_root ⇒ Object
7 8 9 |
# File 'lib/neo4j-test.rb', line 7 def self.jars_root File.join("#{File.dirname(__FILE__)}", "neo4j-test", "jars") end |
.load_jars! ⇒ Object
11 12 13 14 |
# File 'lib/neo4j-test.rb', line 11 def self.load_jars! require 'java' Dir["#{jars_root}/*.jar"].each {|jar| require jar } end |