aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/base_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* use an attribute rather than a SQL literalAaron Patterson2011-02-261-0/+1
|
* Add interpolation of association conditions back in, in the form of proc { ↵Jon Leighton2011-02-141-6/+0
| | | | ... } rather than instance_eval-ing strings
* rawr, mysql, mysql2, why do you hate me. :'(Aaron Patterson2011-02-091-2/+4
|
* use parenthesis so limit works on all dbsAaron Patterson2011-02-091-6/+4
|
* Allow limit values to accept an ARel SQL literal.Ken Collins2011-02-091-2/+8
|
* comma limits do not make sense on oracle or pgAaron Patterson2011-02-081-3/+5
|
* primary keys should not be cleared on cache clear, fixing oracle testsAaron Patterson2011-02-081-0/+5
|
* limit() should sanitize limit valuesAaron Patterson2011-02-081-0/+34
| | | | This fixes CVE-2011-0448
* make set_table_name take effect immediatelyJan2011-02-081-0/+11
|
* allow AR caches to be cleared, clear them on class reloadingAaron Patterson2011-02-031-0/+8
|
* Make serialized columns with explicit object_type return a new instance of ↵Guillermo Álvarez2011-02-031-0/+19
| | | | the object instead of nil
* store the serialized column values in the @attributes hashAaron Patterson2011-02-011-0/+25
|
* serialize can take an arbitrary code objectAaron Patterson2011-02-011-0/+21
|
* Use encode_with for marshallingJon Leighton2011-01-071-0/+7
|
* Make serialized fixtures work againPratik Naik2010-12-291-1/+1
|
* stop redifining methods on every call to set_primary_keyAaron Patterson2010-12-241-4/+8
|
* define_attr_method must serialize nil correctlyAaron Patterson2010-12-201-0/+5
|
* if there is no base name, we cannot determine a primary keyAaron Patterson2010-12-201-0/+2
|
* Ensure that boolean false is properly serialized [#6079 state:resolved]Aditya Sanghi2010-12-081-0/+16
|
* fixing dup regressionsAaron Patterson2010-11-231-16/+16
|
* fixing more dup testsAaron Patterson2010-11-231-21/+22
|
* dup is working betterAaron Patterson2010-11-231-4/+0
|
* removing many unused variablesAaron Patterson2010-11-161-2/+1
|
* Models should be equals even after destroyedSantiago Pastorino2010-11-161-0/+9
| | | | [#5978 state:committed]
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-6/+6
| | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add timestamps to TopicPratik Naik2010-11-021-1/+1
|
* adding a test to ensure offsets with no limits will work [#5316 state:resolved]Aaron Patterson2010-10-201-0/+6
|
* default scope merge where clauses [#5488 state:resolved]Jan2010-10-201-0/+1
|
* should sort these ids before asserting they are equal!Aaron Patterson2010-10-151-1/+1
|
* testing that symbols work as sql literalsAaron Patterson2010-10-151-0/+5
|
* make sure we use the engine assigned to the table when quotingAaron Patterson2010-09-271-0/+18
|
* adding a test for slug behaviorAaron Patterson2010-09-271-0/+4
|
* 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
|
* Remove helper methods that were moved to helper.rbEmilio Tagua2010-09-211-15/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* serialized attributes should be serialized before validation [#5525 ↵Aaron Patterson2010-09-071-1/+5
| | | | state:resolved]
* order should always be concatenated.Neeraj Singh2010-09-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | order that is declared first has highest priority in all cases. Here are some examples. Car.order('name desc').find(:first, :order => 'id').name Car.named_scope_with_order.named_scope_with_another_order Car.order('id DESC').scoping do Car.find(:first, :order => 'id asc') end No special treatment to with_scope or scoping. Also note that if default_scope declares an order then the order declared in default_scope has the highest priority unless with_exclusive_scope is used. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Reset default scope in Thread.current when class is unloaded [#5497 ↵Andrew White2010-09-011-0/+15
| | | | | | state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Memoize STI class lookups for the duration of a requestJeremy Kemper2010-08-191-1/+1
|
* Both tests are using the same model, move the model to another file and add ↵Santiago Pastorino2010-08-141-13/+14
| | | | the missing require
* bringing over latest from masterBrian Lopez2010-08-091-542/+0
|\
| * Making Active Record base_test.rb thinner by moving testsNeeraj Singh2010-08-031-532/+0
| | | | | | | | | | | | | | | | | | | | | | | | to relevant files. Number of assertions before refactoring: 2391 tests, 7579 assertions, 0 failures, 0 errors Number of assertions after refactoring: 2391 tests, 7579 assertions, 0 failures, 0 errors Signed-off-by: José Valim <jose.valim@gmail.com>
* | skip the before_type_cast_on_datetime test entirely for mysql2Brian Lopez2010-08-021-17/+18
| |
* | update tests for mysql2 supportBrian Lopez2010-08-021-4/+13
|/
* Test for behaviour of befeore_type_cast when operating on datetime colmunŁukasz Strzałkowski2010-07-191-0/+8
|
* Removed warnings when a variable is shadowedŁukasz Strzałkowski2010-07-191-2/+2
|
* moving persistence related tests to a new fileNeeraj Singh2010-07-161-327/+0
| | | | | | | | | | Before refactoring test result from AR: 2291 tests, 7180 assertions, 0 failures, 0 errors After the refactoring test result from AR: 2291 tests, 7180 assertions, 0 failures, 0 errors Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Style fixes"Pratik Naik2010-07-151-3/+1
| | | | This reverts commit 3c300b31219f2af3ecd46ef22b04e5c5548db899.
* Style fixeswycats2010-07-141-1/+3
|
* Style fixesPratik Naik2010-07-141-3/+1
|