从最近开始写黄瓜功能我收到警告
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
一切正常,但这个警告让我感到不安。我正在使用Rails 3.1.0和ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]。我的文件是:
项目特征:
Background: logged in as an admin
Given I am logged in as an administrator
用户步骤.rb
Given /^I am logged in as an administrator$/ do
steps %Q{
Given the following users exist:
| email | password | role |
| admin@test.com | admin_password | admin |
| visitor@visitor.com | visitor_password | registered |
And I am on the "home page"
And I follow "Login"
And I fill in "Email" with "admin@test.com"
And I fill in "Password" with "admin_password"
And I press "Sign in"
Then I should see "admin"
}
end
结果我有:
Background: logged in as an admin # features/item.feature:6
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead