我将我的 Rails 4.2.6 应用程序从 Neo4j V7 迁移到了 V9。更改一些配置后,我运行 rspec 命令,但我的所有测试都失败了。我收到的错误是这个:
结构中没有成员 ssl
。我收到此代码的错误:
it "finds amendments for a given item" do
request.env['HTTP_ACCEPT'] = "application/json"
get :find, { amendment: { cid: "X1", namespace: "http://www.example.com" } }
expect(response.content_type).to include("application/json")
expect(response.code).to eq("200")
result = remove_id_and_timestamps(response)
#write_yaml_file(result, sub_dir, "amendments_controller_find_1.txt")
expected = read_yaml_file(sub_dir, "amendments_controller_find_1.txt")
result.should == expected
#expect(result).to eq(expected)
end
迁移之前一切正常,没有错误。 请告诉我如何解决错误中报告的 SSL 问题。
最佳答案
我找到了解决我的问题的方法,我正在与其他可能遇到相同问题的人分享:
1) 我运行此命令 rake neo4j:generate_schema_migration[..,..,..]
2) 我运行 rake RAILS_ENV=test neo4j:migrate
在这 2 个命令之后,我解决了我的问题
关于ruby-on-rails - Rails Neo4j 结构错误中没有成员 'ssl' 是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47470865/