I was trying out RSpec framework in a project and got stopped doing the unit
test of a model. In particular, doing the test for the associations and the
ActiveRecord validations.
I started writing the validations but my tests didn't look DRY at all.
Before refactoring the tests checked out and look for other people
solutions.
I found out shoulda-matchers and Shoulda (which is I didn't get it wrong is
another testing framework). Actually I found another one, remarkable, but it
look it doesn't work with Rails 3.

Does anyone have any advice, comments, suggestion on this matter?

Right now I continue on using RSpec and shoulda-matchers. The last one
mainly for testing the validations and associations of the models.
Any advice and/or help will be appreciated.

Thanks in advance.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to