Tuesday, October 30, 2012

Re: [Rails] rspec : how to I do this ?

On Tue, Oct 30, 2012 at 6:29 AM, roelof <rwobben@hotmail.com> wrote:

> I have followed the rspec course on code-school.

> Now I try to make a test so I can verify that a message has a title and a
> body.
>
> How can I do this ?

I would suggest you use the rspec generators to create a model or
scaffold and then use the generated tests as a guide.

(Seems like something that an "rspec course" would have covered...)

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate