caratteristiche di scrittura di cetriolo da poco sto diventando un avvertimento"eval" è deprecato. Si prega di utilizzare "valutare" invece
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
Tutto funziona bene, ma questo avvertimento mi disturba. Sto usando Rails 3.1.0 e rubino 1.9.3p392 (2013-02-22 revisione 39386) [x86_64-linux]. I miei file sono:
item.feature:
Background: logged in as an admin
Given I am logged in as an administrator
user_steps.rb
Given /^I am logged in as an administrator$/ do
steps %Q{
Given the following users exist:
| email | password | role |
| [email protected] | admin_password | admin |
| [email protected] | visitor_password | registered |
And I am on the "home page"
And I follow "Login"
And I fill in "Email" with "[email protected]"
And I fill in "Password" with "admin_password"
And I press "Sign in"
Then I should see "admin"
}
end
E di conseguenza ho:
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
Quindi passare da eval per valutare nel codice? – fredrik
Non vedo alcuna "valutazione" nei miei file – Andrew