需要 Qt 版本 5 的 capybara-webkit 的弃用警告

Deprecation warning for capybara-webkit requiring Qt version 5

当我 运行 rspec 时,我收到以下消息:

The next major version of capybara-webkit will require at least version 5.0 of Qt. You're using version 4.8.6.

我不知道我在使用 Qt,所以对升级它的影响一无所知。

如何升级它以及升级前应采取哪些预防措施?

equaleffect 上面的评论让我想到了 ImNaN answer,即

Comment out the capybara and capybara-webkit gems from your gemfile. Then:

    bundle
    gem uninstall capybara-webkit
    gem uninstall capybara # if it complains about dependencies 'gem uninstall' them first
    brew remove qt
    brew remove qt5 # if you've been playing around

From a clean environment (restart your terminal):

    brew install qt5
    brew linkapps qt5
    brew link --force qt5

Uncomment capybara and capybara-webkit in the gemfile and then:

    bundle install