[rspec-users] error_on is deprecated?
Pat Maddox
pergesu at gmail.com
Thu Mar 1 15:10:50 EST 2007
The docs say
DEPRECATED. See Spec::Rails::Expectations
model.should_have(:no).errors_on(:attribute)
model.should_have(1).error_on(:attribute)
model.should_have(3).errors_on(:attribute)
However the rdoc for Spec::Rails::Expectations shows the same code.
The only difference is that it's "model.should
have(1).error_on(:attribute) instead"
So is error_on itself deprecated, or is it just the old should_have?
The docs aren't very clear to me in that respect.
Pat
More information about the rspec-users
mailing list