aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | Adding test_has_many_through_has_one_with_has_many_through_source_reflection ↵Jon Leighton2010-10-124-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-122-2/+17
| | | | | | | | | | |
| * | | | | | | | | | Support has_one through assocs as the source associationJon Leighton2010-10-126-10/+50
| | | | | | | | | | |
| * | | | | | | | | | 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-099-5/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Refactoring JoinDependency and friends. This improves the code (IMO) ↵Jon Leighton2010-10-067-12/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-026-2/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | | | | | | | | Prevent ↵Jon Leighton2010-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test_has_many_through_a_has_many_through_association_on_through_reflection failing for me due to ordering of the results
| * | | | | | | | | | | Merge branch 'master' into nested_has_many_through_2Jon Leighton2010-09-3012-56/+209
| |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Initial nested_has_many_through support [#1152]Bodaniel Jeanes2010-09-266-12/+58
| | | | | | | | | | | | |
* | | | | | | | | | | | | Change behavior of count(:limit => x, :offset => y) to limit/offset before ↵John Mileham2011-03-032-11/+54
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | counting.
* | | | | | | | | | | | Rewrote AssociationPreload.Jon Leighton2011-02-284-18/+18
| | | | | | | | | | | |
* | | | | | | | | | | | skip this on oracleAaron Patterson2011-02-281-0/+2
| | | | | | | | | | | |
* | | | | | | | | | | | use an attribute rather than a SQL literalAaron Patterson2011-02-261-0/+1
| | | | | | | | | | | |
* | | | | | | | | | | | removing limits and offsets from COUNT queries unless both are specified. ↵Aaron Patterson2011-02-251-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [#6268 state:resolved]
* | | | | | | | | | | | fixes: ActiveRecord::Base.scopes includes all scopes defined in all subclassesEric Allam2011-02-241-0/+4
| | | | | | | | | | | |
* | | | | | | | | | | | observers leak across tests, so rather than modify the object, we should ↵Aaron Patterson2011-02-231-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just count the number of times the observer was called
* | | | | | | | | | | | Fix observer callbacks firing multiple times on descendant instancesKamal Fariz Mahyuddin2011-02-221-0/+14
| | | | | | | | | | | |
* | | | | | | | | | | | expectations change when using IM. Change oracle tests to reflect thatAaron Patterson2011-02-221-2/+6
| | | | | | | | | | | |
* | | | | | | | | | | | adding a test case for custom lockingAaron Patterson2011-02-211-0/+17
| | | | | | | | | | | |
* | | | | | | | | | | | Use proper objects to do the work to build the associations (adding methods, ↵Jon Leighton2011-02-212-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callbacks etc) rather than calling a whole bunch of methods with rather long names.
* | | | | | | | | | | | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-211-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Tpyo: fixing several cases of the theNicholas Rowe2011-02-191-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | oops, no need for puts!Aaron Patterson2011-02-181-1/+0
| | | | | | | | | | | | |
* | | | | | | | | | | | | AR::AttributeMethods does not need to be included in an AR::Base class.Aaron Patterson2011-02-181-0/+62
| | | | | | | | | | | | |
* | | | | | | | | | | | | fixes a merge conflictXavier Noria2011-02-191-10/+0
|/ / / / / / / / / / / /
* | | | | | | | | | | | merges docrailsXavier Noria2011-02-181-0/+10
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Fix Typos: remove several occurences of the theNicholas Rowe2011-02-171-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-181-8/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Remove test which was broken on 1.8. This test is now irrelevant since ↵Jon Leighton2011-02-181-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | singular associations no longer return a proxy object.
* | | | | | | | | | | | | | Don't use skip, just don't run anything, we don't have skip in Ruby 1.8Emilio Tagua2011-02-182-8/+4
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Should use "=" instead "replace" after this commit: ↵Emilio Tagua2011-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1644663ba7f678d178deab2bf1629dc05626f85b
* | | | | | | | | | | | | | No need to test agaisnt target.Emilio Tagua2011-02-181-1/+1
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | 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
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-1816-162/+105
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association.rb activerecord/lib/active_record/fixtures.rb
| * | | | | | | | | | | | | Split AssociationProxy into an Association class (and subclasses) which ↵Jon Leighton2011-02-1810-152/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.
| * | | | | | | | | | | | | Allow building and then later saving has_many :through records, such that ↵Jon Leighton2011-02-184-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the join record is automatically saved too. This requires the :inverse_of option to be set on the source association in the join model. See the CHANGELOG for details. [#4329 state:resolved]
| * | | | | | | | | | | | | Ensure that association_ids uses the correct attribute where the association ↵Jon Leighton2011-02-182-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is a has_many :through with a :primary_key option on the source reflection. [#6376 state:resolved]
| * | | | | | | | | | | | | explicitly allowing lolqueriesAaron Patterson2011-02-161-3/+10
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | fixing whitespace problemsAaron Patterson2011-02-161-3/+3
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | removed an unnecessary second query when passing an ActiveRecord::Relation ↵Steven Fenigstein2011-02-161-1/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to a where clause. And added ability to use subselects in where clauses.
| * | | | | | | | | | | | | fixture methods can be overridden and super() is usefulAaron Patterson2011-02-151-0/+15
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | fixing variable names, removing FixtureFile instances from test ivarsAaron Patterson2011-02-151-6/+0
| | | | | | | | | | | | | |