I migrated my Rails 4.2.6 app from Neo4j V7 to V9. After changing some configuration I run the rspec command and all my tests are failing. The error I'm receiving is this one: no member ssl in struct
. I received the error from this code:
我将我的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
Before the migration everything was working without errors. Please let me know how to fix the SSL issue as reported in the error.
在迁移之前,一切都正常运行。请让我知道如何解决错误中报告的SSL问题。
1 个解决方案
#1
1
I found a solution to my problem and I'm sharing it with everyone else which may have the same issue: 1) I run this command rake neo4j:generate_schema_migration[..,..,..]
2) I run rake RAILS_ENV=test neo4j:migrate
After this 2 commands, I resolved my problem
我找到了解决我的问题的方法,并且我与其他可能有同样问题的人分享:1)我运行这个命令rake neo4j:generate_schema_migration [..,..,..] 2)我运行rake RAILS_ENV =测试neo4j:migrate在这两个命令之后,我解决了我的问题
#1
1
I found a solution to my problem and I'm sharing it with everyone else which may have the same issue: 1) I run this command rake neo4j:generate_schema_migration[..,..,..]
2) I run rake RAILS_ENV=test neo4j:migrate
After this 2 commands, I resolved my problem
我找到了解决我的问题的方法,并且我与其他可能有同样问题的人分享:1)我运行这个命令rake neo4j:generate_schema_migration [..,..,..] 2)我运行rake RAILS_ENV =测试neo4j:migrate在这两个命令之后,我解决了我的问题