I think that there is a lot of value to projects like shoulda-matchers
(which is separate from shoulda, the testing framework) and
remarkable. The idea is that you should not be testing the framework
(rails). That is, you should not be testing that defining a has_many
association creates a method o
On Jul 28, 2011, at 10:22 AM, Piter Fcbk wrote:
> 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 DR
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