There’s many examples of testing RoR model validations. Even keeping the test being DRY across multiple models. But isn’t it testing Rails which is already tested?
@user = User.make
@user.name = nil
@user.should_not be_valid
Isn’t it testing if Rails validations work?
The point is that it tests that your model validates the presence of name. The fact that it also in effect tests that the Rails validation works, that Rspec works, that Ruby works, that your OS works, and that the rules of physics haven’t suddenly changed, is beside the point.