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/e874e60a-0d23-44c5-b255-437f830de135%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to