[rspec-users] Testing attr_accessible (and/or attr_protected)

Evgeniy Dolzhenko dolzenko at gmail.com
Tue Nov 2 11:49:40 EDT 2010

> I suppose I need to be careful that the attribute change was rejected
> for some other reason (bad data, for example). But that's true of any
> example/test.

Good catch, that's why I think the Shoulda approach makes sense (since
otherwise you're duplicating the Rails test suite which is supposed to
specify/exercise that functionality already)

More information about the rspec-users mailing list