我一直忽略了我的rspec测试,但试图回过头来,现在我无法运行基本的rspec。
rescue in connection_for': connection refused: localhost:7475 (Faraday::ConnectionFailed)
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:589:in `connection_for'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:994:in `request'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http_persistent.rb:25:in `perform_request'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday_middleware-0.9.1/lib/faraday_middleware/response_middleware.rb:30:in `call'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday_middleware-0.9.1/lib/faraday_middleware/request/encode_json.rb:23:in `call'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:in `build_response'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run_request'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:140:in `get'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-core-3.0.1/lib/neo4j-server/cypher_session.rb:41:in `open'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-core-3.0.1/lib/neo4j-server/cypher_session.rb:5:in `block in <module:Server>'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-core-3.0.1/lib/neo4j/session.rb:112:in `call'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-core-3.0.1/lib/neo4j/session.rb:112:in `create_session'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-core-3.0.1/lib/neo4j/session.rb:99:in `open'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-3.0.1/lib/neo4j/railtie.rb:57:in `open_neo4j_session'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-3.0.1/lib/neo4j/railtie.rb:73:in `block (2 levels) in <class:Railtie>'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-3.0.1/lib/neo4j/railtie.rb:72:in `each'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/neo4j-3.0.1/lib/neo4j/railtie.rb:72:in `block in <class:Railtie>'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `call'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:300:in `initialize!'
from /Users/Clam/rails_projects/lets_chill/config/environment.rb:5:in `<top (required)>'
from /Users/Clam/rails_projects/lets_chill/spec/rails_helper.rb:4:in `require'
from /Users/Clam/rails_projects/lets_chill/spec/rails_helper.rb:4:in `<top (required)>'
from /Users/Clam/rails_projects/lets_chill/spec/controllers/sessions_controller_spec.rb:1:in `require'
from /Users/Clam/rails_projects/lets_chill/spec/controllers/sessions_controller_spec.rb:1:in `<top (required)>'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `block in load_spec_files'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `each'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load_spec_files'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96:in `setup'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84:in `run'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke'
from /Users/Clam/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/rspec-core-3.1.7/exe/rspec:4:in `<top (required)>'
from /Users/Clam/.rbenv/versions/2.1.1/bin/rspec:23:in `load'
from /Users/Clam/.rbenv/versions/2.1.1/bin/rspec:23:in `<main>'
我正在使用neo4j gem,figaro gem,考拉gem和faceook-omniauth gem。这是我上次工作以来的补充。
如果您需要我的项目的任何区域参考,请告诉我,因为我不确定在哪里寻找
答案 0 :(得分:2)
您的Neo4j测试环境配置为在端口7475上运行,这是一个好主意。
rake neo4j:install[community-2.1.5,test]
rake neo4j:config[test,7475]
rake neo4j:start[test]
rake neo4j:stop[test]
但您可能已经猜到了。 ; - )如果您将来需要参考,请在https://github.com/neo4jrb/neo4j/wiki/How-To-Test概述。另外,请务必运行bundle update neo4j
,这是您的两个更新。