Sha256: 4c89c89cbbeaf1e5ce7f2e51bd4d535c14c0f1d06acbcd5313a7b8353385a0b6

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

require 'neoid'
require 'supermodel'
require 'neography'
require 'rest-client'

uri = URI.parse(ENV["NEO4J_URL"] || "http://localhost:7574")
$neo = Neography::Rest.new(uri.to_s)

Neography::Config.tap do |c|
  c.server = uri.host
  c.port = uri.port

  if uri.user && uri.password
    c.authentication = 'basic'
    c.username = uri.user
    c.password = uri.password
  end
end

Neoid.db = $neo

RSpec.configure do |config|
  config.mock_with :rspec

  config.before(:all) do
    RestClient.delete "#{uri}/cleandb/secret-key"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
neoid-0.0.2 spec/spec_helper.rb
neoid-0.0.1 spec/spec_helper.rb