rails/activerecord/test
Ernie Miller 9f3b8cd5a5 Fix has_many assocation w/select load after create
If you create a new record via a collection association proxy that has
not loaded its target, and which selects additional attributes through
the association, then when the proxy loads its target, it will
inadvertently trigger an ActiveModel::MissingAttributeError during
attribute writing when CollectionAssociation#merge_target_lists attempts
to do its thing, since the newly loaded records will possess attributes
the created record does not.

This error also raises a bogus/confusing deprecation warning when
accessing the association in Rails 3.2.x, so cherry-pick would be
appreciated!
2012-10-05 18:36:44 -04:00
..
active_record/connection_adapters Ensure disconnecting or reconnecting resets the transaction state 2012-09-15 00:03:04 +01:00
assets Added test to illustrate bad binary blobs. 2012-01-31 13:45:00 -06:00
cases Fix has_many assocation w/select load after create 2012-10-05 18:36:44 -04:00
fixtures test cleanup, remove ruby_type because it's no longer needed 2012-09-03 20:38:14 +02:00
migrations stop depending on the filesystem for interleaved migration tests 2012-01-13 14:33:59 -08:00
models fix warning: method redefined 2012-10-02 13:32:54 -03:00
schema Fix reset_counters() crashing on has_many :through associations. 2012-10-02 23:49:32 +08:00
support Fix annoy warning, when executing testcase. 2012-09-11 00:17:08 +09:00
.gitignore Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. 2011-06-04 23:47:03 +01:00
config.example.yml Simulated & actual (manual/skipped) PostgreSQL auto-reconnection tests. 2012-07-16 09:55:20 -07:00
config.rb