aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | class inheritable attributes is used no more! all internal use of class ↵Josh Kalderimis2010-11-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com>
| * | | | | | | | | | do not require ruby-debug automatically. please require it if you have ↵Aaron Patterson2010-11-191-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | declared it as a dependency
* | | | | | | | | | | Add test using identity map and select.Emilio Tagua2010-11-191-0/+14
| | | | | | | | | | |
* | | | | | | | | | | Update number of queries executed instead of avoiding IM.Emilio Tagua2010-11-191-9/+5
| | | | | | | | | | |
* | | | | | | | | | | Don't change tests, fix code: if locking is enabled skip IM.Emilio Tagua2010-11-191-13/+0
| | | | | | | | | | |
* | | | | | | | | | | Clear IdentityMap before continue this test, we can do this here because ↵Emilio Tagua2010-11-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | store_full_sti_class is not supposed to change during "runtime".
* | | | | | | | | | | Call super setup in this test.Emilio Tagua2010-11-191-1/+2
| | | | | | | | | | |
* | | | | | | | | | | Fix number of queries performed in tests.Emilio Tagua2010-11-191-6/+6
| | | | | | | | | | |
* | | | | | | | | | | 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-197-35/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | | | | | | | |
* | | | | | | | | | | Set Identity Map disabled by default. Enable it for testing.Emilio Tagua2010-11-191-0/+3
| | | | | | | | | | |
* | | | | | | | | | | Test with target object, failing on 1.9.2 when comparing object against ↵Emilio Tagua2010-11-192-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | | | | | | Add tests for inverse relations when using has many and identity map.Emilio Tagua2010-11-191-0/+134
| | | | | | | | | | |
* | | | | | | | | | | 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-192-4/+32
| | | | | | | | | | |
* | | | | | | | | | | IdentityMap - Adjustments to test casesMarcin Raczkowski2010-11-197-22/+62
| | | | | | | | | | |
* | | | | | | | | | | IdentityMap - misc fixesMarcin Raczkowski2010-11-192-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection
* | | | | | | | | | | IdentityMap - Tests for IMMarcin Raczkowski2010-11-195-1/+222
|/ / / / / / / / / /
* | | | | | | | | | fisting typeo, thanks @vinibaggioAaron Patterson2010-11-191-1/+1
| | | | | | | | | |
* | | | | | | | | | fisting my spelling errorsAaron Patterson2010-11-191-6/+6
| | | | | | | | | |
* | | | | | | | | | testing a non-invertible migration caseAaron Patterson2010-11-191-3/+23
| | | | | | | | | |
* | | | | | | | | | invertable migrations are workingAaron Patterson2010-11-191-5/+0
| | | | | | | | | |
* | | | | | | | | | command recorder will record commands sent to a delegate objectAaron Patterson2010-11-191-0/+22
| | | | | | | | | |
* | | | | | | | | | adding invertable migration testAaron Patterson2010-11-191-0/+42
| | | | | | | | | |
* | | | | | | | | | IrreversibleMigration is raised if we cannot invert the commandAaron Patterson2010-11-191-0/+7
| | | | | | | | | |
* | | | | | | | | | commands are reversedAaron Patterson2010-11-191-0/+7
| | | | | | | | | |
* | | | | | | | | | partial implementation of the command recorderAaron Patterson2010-11-191-0/+72
| | | | | | | | | |
* | | | | | | | | | testing multiple ORd queriesAaron Patterson2010-11-181-0/+12
| | | | | | | | | |
* | | | | | | | | | removing space errorsAaron Patterson2010-11-181-1/+1
| | | | | | | | | |
* | | | | | | | | | Adapters can specify maximum number of ids they support in a list of expressionsAlex Rothenberg2010-11-181-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (default is nil meaning unlimited but Oracle imposes a limit of 1000) Limit is used to make multiple queries when preloading associated has_many or habtm records
* | | | | | | | | | When use where more than once on the same column, relation doesn't do an ↵Santiago Pastorino2010-11-171-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'or' or 'in' with the values
* | | | | | | | | | Fix bug with 0bb85ed9ffa9808926b46e8f7e59cab5b85ac19f which missed out a ↵Jon Leighton2010-11-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixtures declaration in cascaded_eager_loading_test.rb
* | | | | | | | | | testing instance based migrationsAaron Patterson2010-11-171-0/+38
| | | | | | | | | |
* | | | | | | | | | schema migrations work as instancesAaron Patterson2010-11-171-0/+1
| | | | | | | | | |
* | | | | | | | | | converted migrations to support instance methodsAaron Patterson2010-11-171-4/+4
| | | | | | | | | |
* | | | | | | | | | fixing assertions so error messages will be more helpfulAaron Patterson2010-11-171-4/+4
| |_|_|_|_|_|_|_|/ |/| | | | | | | |
* | | | | | | | | removing many unused variablesAaron Patterson2010-11-1615-30/+23
| | | | | | | | |
* | | | | | | | | reloading an association will properly set attributes of instantiated ↵Aaron Patterson2010-11-161-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | objects. Thanks Brian Palmer [#5802 state:resolved]