【发布时间】:2017-11-26 16:46:31
【问题描述】:
我最近继承了一个由 neo4j 而不是 postgres 支持的 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>
【问题讨论】:
标签: ruby-on-rails activerecord rspec neo4j graphenedb