data_magic icon indicating copy to clipboard operation
data_magic copied to clipboard

Passing name with the 1st argument of email is deprecated

Open ivodimitrov opened this issue 5 years ago • 0 comments

My code in default.yml is:

forgot_password_page: email_address: ~email_address

and in forgot_password_page.rb is:

include PageObject
  include DataMagic

  def submit_forgot_password(data = {})
    populate_page_with data_for(:forgot_password_page, data)
  end
end

After I ran the test the following error is displayed:

gems/data_magic-1.2/lib/data_magic/standard_translation.rb:187: Passing name with the 1st argument of email is deprecated. Use keyword argument like email(name: ...) instead.

ivodimitrov avatar Apr 29 '20 11:04 ivodimitrov