aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
Commit message (Collapse)AuthorAgeFilesLines
* Adding test_has_many_through_has_one_with_has_many_through_source_reflection ↵Jon Leighton2010-10-121-2/+19
| | | | and modifying ThroughAssociationScope to make it work correctly.
* Rename some tests for consistencyJon Leighton2010-10-121-3/+3
|
* Add test_has_many_through_has_one_throughJon Leighton2010-10-121-2/+14
|
* Support has_one through assocs as the source associationJon Leighton2010-10-121-3/+32
|
* A load of tests that need to be writtenJon Leighton2010-10-121-0/+63
|
* Add support for nested through associations in JoinAssociation. Hence ↵Jon Leighton2010-10-091-5/+54
| | | | Foo.joins(:bar) will work for through associations. There is some duplicated code now, which will be refactored.
* Merge branch 'master' into nested_has_many_throughJon Leighton2010-10-065-1/+51
|\
| * type_name should check for blank because people may have messed up databasesAaron Patterson2010-09-301-0/+14
| |
| * AssociationCollection#include? working properly for objects added with build ↵Marcelo Giorgi2010-09-303-0/+26
| | | | | | | | method [#3472 state:resolved]
| * group clause must be more specificAaron Patterson2010-09-301-1/+1
| |
| * Tests proving #5441oleg dashevskii2010-09-301-1/+11
| |
* | Refactoring JoinDependency and friends. This improves the code (IMO) ↵Jon Leighton2010-10-065-12/+34
| | | | | | | | including adding some explanatory comments, but more importantly structures it in such a way as to allow a JoinAssociation to produce an arbitrary number of actual joins, which will be necessary for nested has many through support. Also added 3 tests covering functionality which existed but was not previously covered.
* | A failing test for a nested has many through association loaded via ↵Jon Leighton2010-10-051-0/+6
| | | | | | | | Foo.joins(:bar)
* | Fix the tests (I have actually verified that these are also the 'right' ↵Jon Leighton2010-10-036-24/+24
| | | | | | | | fixes, rather than just making the tests pass again)
* | Add support for table aliasing, with a test that needs aliasing in order to ↵Jon Leighton2010-10-021-0/+5
| | | | | | | | work correctly. This test incidentally provides a more complicated test case (4 inner joins, 2 using polymorphism).
* | Integrate nested support into ThroughAssociationScope, using my concept of ↵Jon Leighton2010-10-021-12/+12
| | | | | | | | generating a 'chain' of reflections to be joined. It seems to work at the moment, all existing tests are passing. There may be further complications as we add more test cases for nested associations, though.
* | Started implementing nested :through associations by using the existing ↵Jon Leighton2010-10-011-13/+13
| | | | | | | | structure of ThroughAssociationScope rather than layering a module over the top
* | Merge branch 'master' into nested_has_many_through_2Jon Leighton2010-09-3012-56/+209
|\|
| * eliminating method_missing on TableDefinitionAaron Patterson2010-09-291-2/+12
| |
| * fisting test organizationAaron Patterson2010-09-292-52/+50
| |
| * Revert "porting 515917f5d8678af6c57842ca5dfd7c18e67ff1fe to master"Aaron Patterson2010-09-281-6/+0
| | | | | | | | This reverts commit bee447a5b9fe1d683c6cc69aefb7fc22c2a9d9af.
| * Set attributes properly for model built from association with conditions ↵Marcelo Giorgi2010-09-286-1/+47
| | | | | | | | | | | | [#5562 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * fixing indentation warningAaron Patterson2010-09-281-1/+1
| |
| * Test add_index and remove_index with a symbol name #4891Étienne Barrié2010-09-281-0/+7
| |
| * porting 515917f5d8678af6c57842ca5dfd7c18e67ff1fe to masterAaron Patterson2010-09-281-0/+6
| |
| * adding test cases for the dynamic finder matcher match methodAaron Patterson2010-09-271-0/+49
| |
| * @klass also uses DynamicFinderMatch, so no need for it on the relationAaron Patterson2010-09-271-0/+5
| |
| * make sure we use the engine assigned to the table when quotingAaron Patterson2010-09-271-0/+18
| |
| * Fix for #5579 involved the code change for both has_one and has_many ↵Neeraj Singh2010-09-271-1/+9
| | | | | | | | | | | | | | | | relationships. The path included test only for has_one. This patch adds test for has_many relationship. [#5706 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Fix for nested_attributes with has_many association fails when a single ↵Neeraj Singh2010-09-271-0/+8
| | | | | | | | | | | | | | | | record is being updated. [#5705 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * adding a test for slug behaviorAaron Patterson2010-09-271-0/+4
| |
| * Fix remove_index issue when provided :name is a symbolTim Connor2010-09-261-1/+1
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Initial nested_has_many_through support [#1152]Bodaniel Jeanes2010-09-262-8/+43
|/
* Delegate ActiveRecord::Base.offset to scoped methods (analogous to limit) ↵Marcelo Giorgi2010-09-241-0/+6
| | | | | | [#5688 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* restore behavior of touch for models without :updated_xx [#5439 state:resolved]tnp2010-09-241-5/+13
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* reject_id option should be respected while using nested_attributesNeeraj Singh2010-09-241-0/+9
| | | | | | [#5579 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Hash#to_s behaves differently between 1.8 and 1.9, so adjust accordinglyAaron Patterson2010-09-231-1/+1
|
* testing poor behavior of hash serializationAaron Patterson2010-09-221-0/+4
|
* fixing tests. wooAaron Patterson2010-09-211-4/+7
|
* remove join table rows before removing owner row for habtm associations, ↵Hemant Kumar2010-09-211-1/+1
| | | | fixes#5674
* providing arel with column information when possible [#5392 state:resolved]Aaron Patterson2010-09-212-0/+19
|
* Remove helper methods that were moved to helper.rbEmilio Tagua2010-09-211-15/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move helper methods to helper.rb. Make test not depend on local TZ to pass ↵Emilio Tagua2010-09-212-9/+27
| | | | | | or fail. Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix issue with remove_index and add unit test [#5645 state:resolved]Tim Connor2010-09-181-3/+4
|
* expanding the test to include both type of order declarationNeeraj Singh2010-09-181-6/+22
| | | | | | | | | while declaring default_scope Also added test for unscoped using block style with four different combinations Signed-off-by: José Valim <jose.valim@gmail.com>
* removing nonsensical tests, limit now actually adds a limitAaron Patterson2010-09-152-5/+1
|
* specific number of spaces should not be enforcedAaron Patterson2010-09-101-1/+1
|
* added a test for relation which checks intersection between a relation and ↵kane2010-09-101-0/+6
| | | | | | an array works in both directions Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
* Fewer object allocationsJeremy Kemper2010-09-091-3/+3
|
* Cache unserialized attributesJeremy Kemper2010-09-091-9/+12
|