Skip to content

Commit

Permalink
Use positive condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cheerfulstoic committed Mar 30, 2015
1 parent f124b9a commit fa9612a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/spec_helper.rb
Expand Up @@ -46,6 +46,7 @@ def self.logger

module Neo4jSpecHelpers
def create_embedded_session
require 'neo4j-embedded/embedded_impermanent_session'
session = Neo4j::Session.open(:impermanent_db, EMBEDDED_DB_PATH, auto_commit: true)
session.start
end
Expand Down Expand Up @@ -75,11 +76,10 @@ def create_server_session(options = {})
end

def create_session
if RUBY_PLATFORM != 'java'
create_server_session
else
require 'neo4j-embedded/embedded_impermanent_session'
if RUBY_PLATFORM == 'java'
create_embedded_session
else
create_server_session
end
end

Expand Down

0 comments on commit fa9612a

Please sign in to comment.