[rspec-users] Newbie question with rspec on rails

herding rick.walsh at gmail.com
Sun Feb 3 12:32:46 EST 2008


I'm just startingwith Rspec with the rails framework.

I have a question regarding contexts.

If I use a generator for a model, for example, user, I get a user_spec which
I can place rspec specs.

Should I be only having one file per model? What is the convention for
naming and creating specs when speccing out cross object behaviour?

Really appreciate your thoughts.

Also, can anybody recommend any good books or tutorials on Rspec?

Many thanks!
View this message in context: http://www.nabble.com/Newbie-question-with-rspec-on-rails-tp15255819p15255819.html
Sent from the rspec-users mailing list archive at Nabble.com.

More information about the rspec-users mailing list