私は最近、postgres の代わりに neo4j に裏打ちされた Rails アプリを継承しました。
このような仕様テストを実行しようとすると
NEO4J_TYPE=bolt NEO4J_URL="bolt://localhost" bundle exec rake spec
私は得る
/Users/user1/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:66:in `create_request': undefined method `request_uri' for #<URI::Generic bolt://localhost> (NoMethodError)
私も試しました
NEO4J_TYPE=bolt NEO4J_URL="bolt://localhost:7687" bundle exec rake spec
http://neo4jrb.readthedocs.io/en/7.1.x/Setup.html と http://neo4jrb.readthedocs.io/en/9.0.x/Testing.htmlを読みました
しかし、まだ解決策を見つけていません。
私がやったことのいくつか:
brew install neo4j. # also installed java 8 with brew
rake neo4j:config[test,7575]
brew services stop neo4j
brew services start neo4j
$ cypher-shell -a bolt://localhost
Connected to Neo4j 3.3.0 at bolt://localhost:7687.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
neo4j>
Interrupted (Note that Cypher queries must end with a semicolon. Type :exit to exit the shell.)
neo4j>