możliwości pisania ogórka od niedawna Dostaję ostrzeżenie"eval" jest przestarzałe. Proszę użyć „oceniać” zamiast
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
wszystko działa poprawnie, ale ostrzeżenie to mnie niepokoi. Używam Rails 3.1.0 i ruby 1.9.3p392 (2013-02-22 wersja 39386) [x86_64-linux]. Moje pliki są:
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
I w rezultacie mam:
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
Następnie przejść z eval do oceny w kodzie? – fredrik
Nie widzę "eval" w moich plikach – Andrew