Writing cucumber functions recently I get a warning
[DEPRECATION] "eval" is deprecated. Please use "evaluate" instead
Everything works fine, but this warning bothers me. I am using Rails 3.1.0 and ruby 1.9.3p392 (2013-02-22 version 39386) [x86_64-linux] . My files:
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 | | 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
And as a result, I:
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
Andrew
source share