Actually, I'm starting to have second thoughts if the only use case we can think for this is tests. These tests would have been just as well if you had a assert_not r.valid? before your error check. Do you have a non-test example?

> On Mar 23, 2014, at 16:45, Henrik Nyh <notifications@github.com> wrote:
> 
> In activerecord/test/cases/validations_test.rb:
> 
> > @@ -52,6 +52,21 @@ def test_error_on_given_context
> >      assert r.save(:context => :special_case)
> >    end
> >  
> > +  def test_validate
> > +    r = WrongReply.new(:title => "Valid title")
> > +
> > +    r.validate
> > +    assert_empty r.errors[:author_name]
> > +
> > +    r.validate(:special_case)
> > +    refute_empty r.errors[:author_name]
> Excellent; I like that better. Pushing a test cleanup.
> 
> —
> Reply to this email directly or view it on GitHub.