aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that primary_keys of HABTM records is not double quotedNeeraj Singh2010-07-201-0/+18
| | | | [#5152 state:reslved]
* Make use of severity levelsSantiago Pastorino2010-07-201-2/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix a failing test in Railtie and properly define all severity levels in ↵José Valim2010-07-201-4/+2
| | | | MockLogger for LogSubscriber.
* Test added, we shouldn't log sql calls when logger is not on debug? modeSantiago Pastorino2010-07-201-0/+17
|
* mocking out debing? call in the MockLoggerAaron Patterson2010-07-191-0/+2
|
* Make use of redefine_method, removed some more redefining warningsŁukasz Strzałkowski2010-07-191-0/+1
|
* 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-193-7/+7
|
* expected value should come first in assert_equalNeeraj Singh2010-07-181-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* primary_keys_test reads better than pk_testNeeraj Singh2010-07-181-0/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* fixing typoNeeraj Singh2010-07-181-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* removing extra whitespacesNeeraj Singh2010-07-181-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* save on parent should not cascade to child unless child changed [#3353 ↵Subba Rao Pasupuleti2010-07-181-0/+18
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* adding a test for clearing stale connectionsAaron Patterson2010-07-161-0/+31
|
* fixing test file nameAaron Patterson2010-07-161-0/+0
|
* fixing whitespace errorsAaron Patterson2010-07-161-4/+4
|
* Makes this test don't trust on the speed of executionSantiago Pastorino2010-07-171-4/+5
|
* fixing typeo. thanks bamnet!Aaron Patterson2010-07-161-1/+1
|
* moving persistence related tests to a new fileNeeraj Singh2010-07-162-327/+357
| | | | | | | | | | 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>
* JoinDependency#graft does not properly set parent join [#5124 state:resolved]David Genord II2010-07-161-0/+7
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Style fixes"Pratik Naik2010-07-151-3/+1
| | | | This reverts commit 3c300b31219f2af3ecd46ef22b04e5c5548db899.
* Style fixeswycats2010-07-141-1/+3
|
* activerecord tests should inherit from ActiveRecord::TestCaseAaron Patterson2010-07-144-4/+4
|
* Let's initialize instance variables in the postgres adapter.Aaron Patterson2010-07-141-0/+17
|
* Remove unintentional API changes. [#1108]Pratik Naik2010-07-141-41/+9
|
* Style fixesPratik Naik2010-07-141-3/+1
|
* Set destroyed=true in opt locking's destroy [#5058 state:resolved]Jacob Lewallen2010-07-141-1/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* count method should not take options if it is operated on has_many ↵Neeraj Singh2010-07-131-0/+26
| | | | | | | | association which has finder_sql or counter_sql [#2395 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* update_attributes and update_attributes! are now wrapped in a transactionNeeraj Singh2010-07-131-1/+22
| | | | | | [#922 state:resovled] Signed-off-by: José Valim <jose.valim@gmail.com>
* Added reorder delegation for ActiveRecord::Base(to be able to overwrite the ↵Vitalii Khustochka2010-07-131-0/+6
| | | | | | default_scope ordering in the named scope [#5093 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* string IDs are now quoted correctly [#5064 state:resolved]Will St. Clair + Neeraj Singh2010-07-131-1/+11
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* renaming test name to fix accidently overrideSubba Rao Pasupuleti2010-07-131-1/+1
| | | | | | [#5076 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* enable AS::JSON.encode to encode AR::Relation by providing `as_json` methodMislav Marohnić2010-07-131-0/+7
| | | | | | [#5073 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* with this fix touch method - does not call validations - doest not call ↵Neeraj Singh2010-07-131-0/+10
| | | | | | | | callbacks - updates updated_at/on along with attribute if attribute is provided - marks udpated_at/on and attribute as NOT changed [#2520 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* primary key behavioral testsAaron Patterson2010-07-101-0/+17
|
* behavioral tests for sqlite adapterAaron Patterson2010-07-101-4/+77
|
* adding more behavioral tests for the sqlite adapterAaron Patterson2010-07-091-0/+20
|
* Return from ActiveRecord::Base#attributes= unless value is a hash [#4070 ↵David Trasbo2010-07-081-0/+7
| | | | | | state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
* reset_counter should work with non-traditional belongs_to and polymorphic ↵Neeraj Singh2010-07-081-3/+16
| | | | | | | | belongs_to [#4984 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* This patch changes update_attribute implementatino so:Neeraj Singh2010-07-083-13/+52
| | | | | | | | | | - it will only save the attribute it has been asked to save and not all dirty attributes - it does not invoke callbacks - it does change updated_at/on Signed-off-by: José Valim <jose.valim@gmail.com>
* Eager loading :through associations will join the :source model if there are ↵Grant Ammons2010-07-081-0/+6
| | | | | | :conditions. [#2362 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Fix the #using_limitable_reflections? helper to work correctly by not ↵Ken Collins2010-07-081-0/+10
| | | | | | examining the length of an array which contains false/true, hence always passing. [#4869 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Tests to specify the behaviour of ActiveRecord::Migrator.get_all_versions() ↵Thiago Pradi2010-07-081-0/+14
| | | | | | [#5066 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* fix ActiveRecord `destroy_all` so it returns destroyed recordsMislav Marohnić2010-07-082-8/+19
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* mass_assignment_security moved from AR to AMo, and minor test cleanupJosh Kalderimis2010-07-086-185/+10
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* minor changes to mass assignment security patch to bring it in line with ↵Josh Kalderimis2010-07-083-131/+103
| | | | | | rails standards Signed-off-by: José Valim <jose.valim@gmail.com>
* Mass assignment security refactoringEric Chapweske2010-07-085-13/+135
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* This test never runs and it has never run. Since the day this fileNeeraj Singh2010-07-081-4/+0
| | | | | | | | was created this test has name not beginning with test_. Also this test is trying to use has_many on another has_many which is not supported. Signed-off-by: José Valim <jose.valim@gmail.com>
* Fixed gruoped_by_title spelling [#5063 state:committed]Ben Somers2010-07-081-2/+2
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* adding some behavioral tests for the sqlite adapter. [#5065 state:resolved]Aaron Patterson2010-07-071-0/+100
| | | | Signed-off-by: wycats <wycats@gmail.com>