aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | reload the owner model after updateBrian Lopez2010-08-021-0/+1
| |
* | Merge branch 'master' into mysql2Brian Lopez2010-08-029-3/+101
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Bring returning back to ease migration. Remove duplicated logic. Eager loading an association should not change the count of children fix loading of different elements in array then int and string [#5036 state:resolved] Tidy up previous commit. test and fix collection_singular_ids= with string primary keys [#5125 state:resolved] Handle edge cases in the previous patch. Improved how AppGenerator generates the application name. It now detects the current app name whenever possible. This means that renaming the residing directory will not effect the app name generated by AppGenerator. ActiveModel::Errors json serialization to work as Rails 3b4 [#5254 state:resolved] Add missing require in ActiveSupport::HashWithIndifferentAccess [#5189 state:resolved] Add an internal (private API) after_touch callback. [#5271 state:resolved] added failing touch propagation test Makes rails destroy scaffold don't duplicate routes.draw do |map| |map| when using the deprecated syntax Failing test to check for route file corruption if legacy map parameter is used. [#5263 state:open] Corrected the rake test:units and test:functionals description [#5251 state:committed] Use AS::OrderedHash when trusting in the order of the hash Fix label form helper to use I18n and html options, without the need of 'nil' text param:
| * Eager loading an association should not change the count of childrenNeeraj Singh2010-08-025-0/+38
| | | | | | | | | | | | [#4971 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Tidy up previous commit.José Valim2010-08-021-1/+1
| |
| * test and fix collection_singular_ids= with string primary keys [#5125 ↵Robert Pankowecki2010-08-023-2/+43
| | | | | | | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Add an internal (private API) after_touch callback. [#5271 state:resolved]José Valim2010-08-021-4/+4
| |
| * added failing touch propagation testJakub Kuźma2010-08-022-0/+19
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | update tests for mysql2 supportBrian Lopez2010-08-0215-19/+459
|/
* reverting where() functionality, adding a testAaron Patterson2010-07-301-0/+5
|
* Don't increment and then decrement the same counter when re-assigning a ↵Tarmo Tänav2010-07-291-0/+4
| | | | | | | | belongs_to association [#2786 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* fixed joining of attributes when using find_or_create_by with multiple ↵Jon Buda2010-07-281-0/+9
| | | | | | attributes through an association Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* missing requires addedSantiago Pastorino2010-07-261-0/+2
|
* Move runtime back to the Thread.currentJosé Valim2010-07-261-0/+4
|
* Removing unnecessary code [#5192 state:resolved]Thiago Pradi2010-07-261-1/+7
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* do not execute the session tests within transactionsAaron Patterson2010-07-251-0/+2
|
* Object#returning removedSantiago Pastorino2010-07-251-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Move runtime back to connection.José Valim2010-07-251-4/+0
|
* Revert the previous three commits.José Valim2010-07-251-0/+4
| | | | | | * AS::Notifications#instrument should not measure anything, it is not its responsibility; * Adding another argument to AS::Notifications#instrument API needs to be properly discussed;
* use a hash to collect optional statistics about the instrumentationAaron Patterson2010-07-251-4/+0
|
* runtime should be properly initialized.José Valim2010-07-251-0/+4
|
* testing sqlbypass destroy. caching connection during destroyAaron Patterson2010-07-231-0/+9
|
* refactoring class methods to a moduleAaron Patterson2010-07-221-2/+5
|
* session_id is a VARCHARSantiago Pastorino2010-07-221-5/+5
|
* adding a test for session saveAaron Patterson2010-07-221-0/+10
|
* testing loaded? method and reducing funcallsAaron Patterson2010-07-211-0/+10
|
* testing new_record? and converting to an attributeAaron Patterson2010-07-211-0/+5
|
* starting sql bypass test, fixing create_table and drop_table!Aaron Patterson2010-07-211-0/+22
|
* initializing instance variablesAaron Patterson2010-07-211-0/+63
|
* removing unused models from testsSubba Rao Pasupuleti2010-07-2114-43/+1
| | | | | | [#5153 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* renaming tests by removing proxy_options from namesNeeraj Singh2010-07-211-5/+5
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensure default_scope can be overwriten by association conditions.José Valim2010-07-212-0/+6
|
* eagerly loaded association records should respect default_scope [#2931 ↵Subba Rao Pasupuleti2010-07-213-2/+22
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* update_attribute should not update readonly attributesNeeraj Singh2010-07-214-2/+13
| | | | | | [#5106 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Timestamp columns of HABTM join table should record timestampsNeeraj Singh2010-07-212-1/+36
| | | | [#5161 state:resolved]
* Revert "save on parent should not cascade to child unless child changed ↵José Valim2010-07-211-18/+0
| | | | | | | | [#3353 state:open]" Please check Lighthouse for more information. This reverts commit 4a0d7c1a439c6ad8d35bf514761824e51fa07df2.
* Strengthening the test for nested_attributeSubba Rao Pasupuleti2010-07-211-1/+20
| | | | | | | | Loading the associate target in nested_attributes should load most recent attributes for child records marked for destruction Signed-off-by: José Valim <jose.valim@gmail.com>
* association load target shouldn't replace recordsSzetobo2010-07-211-1/+13
| | | | | | | | from db if it is already loaded by nested attributes assignment [#5053 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* In nested_attributes when association is not loaded and associationSubba Rao Pasupuleti2010-07-211-0/+6
| | | | | | | | record is saved and then in memory record attributes should be saved [#5053 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* - without the id test is passing even if I change :allow_destroy from ↵Neeraj Singh2010-07-211-2/+47
| | | | | | 'false' - adding more tests to strengthen the test suite Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensure that primary_keys of HABTM records is not double quotedNeeraj Singh2010-07-204-0/+45
| | | | [#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>