aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/identity_map_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Changed a few instances of of words in the API docs written in British ↵Oemuer Oezkir2011-07-241-2/+2
| | | | | | English to American English(according to Weber)
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-061-1/+2
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-041-3/+2
| | | | 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.
* Revert "Revert the merge because tests did not pass."José Valim2011-05-071-0/+35
| | | | This reverts commit 886818d2bab40585c0cea763002ffc16917dd0b3.
* Revert the merge because tests did not pass.José Valim2011-05-061-35/+0
| | | | | | | Revert "Merge pull request #423 from richardiux/master" This reverts commit b8f08c4ea7c56e34e3e17c9006f1ae6d9f7504ee, reversing changes made to fd9df1b1dd1196c2233835e25a6a38956e9e3959.
* Adding base method symbolized_sti_name to activerecord base to be used on ↵Richard Millan2011-05-061-4/+6
| | | | identity map. Identity map now considers the inheritance when creating the caching keys
* Test: identity on inherited classes should behave the same when turned on or offRichard Millan2011-05-051-0/+16
|
* Testing identity map on inherited active record classes. Distinct models ↵Richard Millan2011-05-051-0/+17
| | | | that use the same database table shouldn't be retrieved as the same object when there is not a type attribute.
* Fix failing AR test.José Valim2011-05-021-17/+0
|
* Make the identity map use the instrumentation infrastructure so we can style ↵David Heinemeier Hansson2011-05-011-4/+13
| | | | the messages nicely with colors (FIXME: Can someone look into why the test is not working?)
* fixing test warningsAaron Patterson2011-04-301-7/+1
|
* Add log message when loading records from Identity Map.Emilio Tagua2011-04-041-0/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use IM when trying to load records using ID.Emilio Tagua2011-04-041-3/+10
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add order clauses to fix some tests which were failing under 1.8 on oracle ↵Jon Leighton2011-03-181-9/+9
| | | | and postgres
* Active Record typos.R.T. Lechow2011-03-051-2/+2
|
* Don't use skip, just don't run anything, we don't have skip in Ruby 1.8Emilio Tagua2011-02-181-4/+2
|
* Use to_a instead :load in test, since :load changed.Emilio Tagua2011-02-181-1/+1
|
* No need to test against target anymore.Emilio Tagua2011-02-181-8/+8
|
* Run tests without IdentityMap when IM=false is given.Emilio Tagua2011-02-151-0/+4
|
* Add test using identity map and select.Emilio Tagua2010-11-191-0/+14
|
* Ups, forgot to remove one conflict tag from previous commit.Emilio Tagua2010-11-191-1/+0
|
* Revert "IdentityMap - Adjustments to test cases"Emilio Tagua2010-11-191-0/+1
| | | | | | | | This reverts commit 4db9dca55e3acc2c59f252eb83ecb83db5f4b81b. Conflicts: activerecord/test/cases/identity_map_test.rb
* Use block syntax in IdentityMap middleware.Emilio Tagua2010-11-191-0/+8
|
* Use hash[:Post][1] style identity maps for each table.Emilio Tagua2010-11-191-0/+7
|
* Fix test name and typo.Emilio Tagua2010-11-191-2/+2
|
* Test reorganizationMarcin Raczkowski2010-11-191-36/+83
|
* Test with target object, failing on 1.9.2 when comparing object against ↵Emilio Tagua2010-11-191-2/+2
| | | | association proxy object.
* Testing objects equality is what we are looking for here, no query caching.Emilio Tagua2010-11-191-12/+8
|
* Change test models.Emilio Tagua2010-11-191-10/+10
|
* Don't use identity map if loading readonly records, this will prevent ↵Emilio Tagua2010-11-191-6/+26
| | | | changing readonly status on already loaded records.
* Associated objects are assigned from identity map if enabled and contains ↵Emilio Tagua2010-11-191-0/+18
| | | | associated object.
* Add test for update_attributes and identity map.Emilio Tagua2010-11-191-0/+13
|
* Remove objects from identity map if save! failed, otherwise finding again ↵Emilio Tagua2010-11-191-0/+13
| | | | the same record will have invalid attributes.
* Remove objects from identity map if save failed, otherwise finding again the ↵Emilio Tagua2010-11-191-1/+15
| | | | same record will have invalid attributes.
* Add test to show that when IdentityMap is disabled finders returns different ↵Emilio Tagua2010-11-191-4/+7
| | | | objects.
* Uncomment test and make it work.Emilio Tagua2010-11-191-2/+5
|
* IdentityMap - Fixes problem with dirty attributesMarcin Raczkowski2010-11-191-0/+32
|
* IdentityMap - Adjustments to test casesMarcin Raczkowski2010-11-191-9/+23
|
* IdentityMap - Tests for IMMarcin Raczkowski2010-11-191-0/+198