You miss a do after it "populates a array containing that product", it that just a copy-paste error or the code you are running? /Ester
On Tuesday, December 16, 2014 10:20:12 AM UTC+1, Roelof Wobben wrote: > > Yep > > Op dinsdag 16 december 2014 09:20:57 UTC+1 schreef Myron Marston: >> >> On Friday, December 12, 2014 11:53:19 AM UTC-8, Roelof Wobben wrote: >>> >>> The create command is from FactoryGirl. >>> >>> And on the spec_helper.rb I have this : >>> >>> config.include FactoryGirl::Syntax::Methods >>> >>> and on the model testing that was enough. >>> >>> There I used it like this : >>> >>> it "is valid with a productname, description and a image_url " do >>> expect(create(:product)).to be_valid >>> end >>> >>> Roelof >>> >> >> Are you requiring `spec_helper.rb` from your controller spec? >> > -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/93b5e42e-8e30-434f-83e7-688b31df3673%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
