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/22cb64b1-44ed-4dd1-9261-a24cdd765c6d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
