config_spec.rb 534 B

123456789101112131415161718192021
  1. # frozen_string_literal: true
  2. lib_dir = File.join(File.dirname(File.expand_path(__FILE__)), '..', 'lib')
  3. $LOAD_PATH.unshift(lib_dir) unless
  4. $LOAD_PATH.include?(lib_dir) || $LOAD_PATH.include?(lib_dir)
  5. require 'neoinfra/config'
  6. describe NeoInfra do
  7. before(:each) do
  8. @test_config = NeoInfra::Config.new('config.yaml.example')
  9. end
  10. it 'loads test accounts' do
  11. expect(@test_config.accounts.length).to eql(1)
  12. end
  13. it 'neo4j default host is set' do
  14. expect(@test_config.neo4j[:host]).to eql('localhost')
  15. end
  16. end