希望有人可以帮助我解决在CI和我的桌面计算机上传递但在我的笔记本电脑上失败的失败规范(MacBook)。
这是失败:
$ rspec spec/features/media_files_spec.rb
Randomized with seed 39713
WARNING: The next major version of capybara-webkit will require at least version 5.0 of Qt. You're using version 4.8.7.
....F
Failures:
1) MediaFiles upload additional file to section
Failure/Error: expect(page).to have_css(".photoset .photo", count: 2)
expected to find css ".photoset .photo" 2 times, found 1 match: ""
# ./spec/features/media_files_spec.rb:43:in `block (2 levels) in <top (required)>'
# ./spec/support/background_jobs.rb:14:in `block (3 levels) in <top (required)>'
# ./spec/support/background_jobs.rb:5:in `run_background_jobs_immediately'
# ./spec/support/background_jobs.rb:13:in `block (2 levels) in <top (required)>'
Finished in 12 seconds (files took 3.03 seconds to load)
5 examples, 1 failure
Failed examples:
rspec ./spec/features/media_files_spec.rb:24 # MediaFiles upload additional file to section
我下周要去旅行,所以想要让这台笔记本电脑稳定但不确定为什么在本地通过其他地方时失败?不知道从哪里开始。想法?
答案 0 :(得分:0)
发布我自己的答案,因为这可能有助于其他人。
原来这是我的.env
在故障机器上的一个问题。一些ENV变量不同步。
坚果!