[rspec-users] Is #valid? automatically called?
scott at railsnewbie.com
Fri Feb 13 00:45:02 EST 2009
Mark Wilden wrote:
> It seems logical that #errors_on would call valid? Otherwise, how would it know?
That intuitively makes sense.
The reason the whole issue is confusing is because of AR's behaviour:
errors_on(:foo) looks like it'll call errors.on(:foo), which returns nil
if valid? isn't called.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users