16.2.2014 20:09, Rafael Mendonça França kirjoitti:
>
> In activerecord/test/cases/autosave_association_test.rb:
>
> > @@ -1078,7 +1078,12 @@ def save(*args)
> >    end
> >
> >    def test_should_not_load_the_associated_model
> > -    assert_queries(1) { @pirate.catchphrase = 'Arr'; @pirate.save! }
> > +    # Two update queries are made after both associations are defined as
> > +    # inverse of each other.
> > +    #
> > +    # UPDATE "pirates" SET "catchphrase" = ?, "updated_on" = ? WHERE "pirates"."id" = 1
> > +    # UPDATE "pirates" SET "catchphrase" = ?, "updated_on" = ? WHERE "pirates"."id" = 1.
>
> Why are made the same queries?
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/rails/rails/pull/14030/files#r9777986>.
>

Hello!

I havent solved that.

Carlos asked for a test and because im a bit lazy i just modified 
existing test models - made two associations inverses of each other. 
This test record change resulted test to fail due to two queriy problem.

My fix is nothing to do with that problem.

Joni

-- 
Joni Töyrylä
Sähköposti: info@jonitoyryla.eu
Verkkosivusto: http://www.jonitoyryla.eu (7.10)