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

时间:2015-10-14 09:26:09

标签: ruby-on-rails qt rspec capybara-webkit

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

std::string FileSystem::removeNullCharacters(const char * input){ std::string out = ""; for(int i = 0; i < 512; ++i){ std::cout << i << ": " << input[i]; /*if(input[i] == '\0'){ return out; } else{ out += input[i]; }*/ } return out; }

我不知道我在使用Qt,所以不知道升级它的含义。

如何进行升级以及在此之前应采取哪些预防措施?

1 个答案:

答案 0 :(得分:4)

等于上面的评论导致我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