Re: [rspec-users] RSpec, shoulda-matchers and Rails model attributes validations

2011-07-28 Thread Sam Goldman
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

Re: [rspec-users] RSpec, shoulda-matchers and Rails model attributes validations

2011-07-28 Thread David Chelimsky
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

[rspec-users] RSpec, shoulda-matchers and Rails model attributes validations

2011-07-28 Thread Piter Fcbk
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