将 Cucumber 与 Rails 3.1 一起使用时出现弃用警告:class_inheritable_attribute 已弃用
这是 Rails 3.1 上的新项目设置。当我运行cucumber features时,我总是会收到两次相同的恼人的弃用警告。任何指导将不胜感激。
弃用警告:class_inheritable_attribute 已弃用,请改用 class_attribute 方法。请注意,它们的行为略有不同,因此请先参阅 class_attribute 文档。 (从 /Users/Mandingo/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58 处的 require 调用)
This is a fresh project setup on Rails 3.1. When I run cucumber features I always get the same annoying deprecation warning twice. Any guidance would be appreciated.
DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from require at /Users/Mandingo/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我们谈话的时候,黄瓜轨道的人正在研究它:)
https://github.com/cucumber/cucumber-rails/issues/169
The cucumber-rails guys are working on it as we talk :)
https://github.com/cucumber/cucumber-rails/issues/169