i pass argument in factorygirl, shows error. code is
when /^i create (\d+) companies , company "([^"]*)" "([^"]*)"$/ |n,arg1,arg2| create_companies n.to_i click_on("companies") companies = factorygirl.create(:company, arg1: "#{arg2}", sub: 123) companies.save_profile end
i passing arg1
in facorygirl
. show error as
undefined method `arg1=' #<company:0x0000000c150ed0> (nomethoderror)
how may pass arg1 factorygirl.
thanks answer.
Comments
Post a Comment