aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4301 from Karunakar/refactor_testsAaron Patterson2012-01-051-4/+7
|\ | | | | Refactor tests
| * removed unnecessary +1 from assert_difference because default difference is 1Karunakar (Ruby)2012-01-051-1/+1
| |
| * refactored tests -- assert_diffrence instead of checking directly with countKarunakar (Ruby)2012-01-041-4/+7
| |
* | Merge pull request #4315 from larskanis/allow_setting_of_pgconn_paramsAaron Patterson2012-01-051-0/+15
|\ \ | | | | | | PostgreSQL: Allow consistent setting of libpq params in database connection specification
| * | Postgresql: add test case for setting custom libpq connection parametersLars Kanis2012-01-041-0/+15
| | |
* | | call super from setupAaron Patterson2012-01-041-0/+1
| | |
* | | call superAaron Patterson2012-01-041-0/+10
| | |
* | | Merge pull request #4282 from edgecase/order_after_reorderAaron Patterson2012-01-042-1/+7
|\ \ \ | | | | | | | | correctly handle order calls after a reorder
| * | | correctly handle order calls after a reorderMatt Jones + Scott Walker2012-01-032-1/+7
| |/ /
* | | No need to require psych since require yaml does that.Rafael Mendonça França2012-01-041-1/+0
| | |
* | | No need to use rescue block to require psychRafael Mendonça França2012-01-041-18/+14
| |/ |/|
* | create_fixtures should accept symbol keys for custom table -> class ↵Jeremy Kemper2012-01-031-2/+10
| | | | | | | | mappings. Fixes an unintended regression.
* | Fix GH #4285. Remove options when we record calling creat_tablekennyj2012-01-041-0/+6
| |
* | setup_fixture_accessors should accept symbols for table names. Fixes an ↵Jeremy Kemper2012-01-031-1/+1
| | | | | | | | unintended (and untested) regression.
* | Merge pull request #2955 from dmitry/masterAaron Patterson2012-01-031-0/+12
|\ \ | | | | | | Polymorphic with optimistic lock and counter cache should be destroyed
| * | Merge branch 'master' of git://github.com/rails/railsDmitry Polushkin2011-12-3179-849/+2158
| |\|
| * | Merge branch 'master' of git://github.com/rails/railsDmitry Polushkin2011-10-053-4/+18
| |\ \
| * \ \ Merge branch 'master' of git://github.com/rails/railsDmitry Polushkin2011-10-016-3/+57
| |\ \ \
| * \ \ \ Merge branch 'master' of git://github.com/rails/railsDmitry Polushkin2011-09-157-62/+65
| |\ \ \ \
| * | | | | Test polymorphic record with optimistic locking and counter cache should be ↵Dmitry Polushkin2011-09-091-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | destoyed without catching the ActiveRecord::StaleObjectError.
* | | | | | actually disconnect from the database at the end of each testAaron Patterson2012-01-031-2/+2
| |_|_|_|/ |/| | | |
* | | | | rename start to run and use Thread.pass rather than sleeping to schedule the ↵Aaron Patterson2011-12-301-21/+29
| | | | | | | | | | | | | | | | | | | | watchdog
* | | | | connection pool starts the reaperAaron Patterson2011-12-301-0/+16
| | | | |
* | | | | just dup the spec now that it will deep copyAaron Patterson2011-12-301-2/+1
| | | | |
* | | | | connection specification will deep copy the configAaron Patterson2011-12-301-0/+12
| | | | |
* | | | | each connection pool has a reaperAaron Patterson2011-12-301-0/+12
| | | | |
* | | | | introduce a timer class for reaping connectionsAaron Patterson2011-12-301-0/+46
| | | | |
* | | | | raise a pull full error when the connection pool is full and no connection ↵Aaron Patterson2011-12-301-0/+8
| | | | | | | | | | | | | | | | | | | | can be obtained
* | | | | connections are only removed if they are inactveAaron Patterson2011-12-301-2/+18
| | | | |
* | | | | connections can be reaped via the `reap` methodAaron Patterson2011-12-301-0/+15
| | | | |
* | | | | deal with removing connections associated with the current threadAaron Patterson2011-12-301-0/+8
| | | | |
* | | | | connections can be removed from the poolAaron Patterson2011-12-301-0/+19
| | | | |
* | | | | connections must be checked in at the end of a threadAaron Patterson2011-12-301-14/+3
| | | | |
* | | | | Test case: fixture table name is defined in modelAlexey Muranov2011-12-301-0/+5
| | | | |
* | | | | Test fixtures with custom model and table namesAlexey Muranov2011-12-301-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test using fixtures with random names and model names, that is not following naming conventions but using set_fixture_class instead. It is expected that the table name be defined in the model, but this is not explicitly tested here. This will need to be fixed.
* | | | | Deprecate implicit eager loading. Closes #950.Jon Leighton2011-12-2918-89/+157
| | | | |
* | | | | Merge pull request #4216 from edgecase/master_fix_reorder_with_limited_idsAaron Patterson2011-12-281-0/+10
|\ \ \ \ \ | | | | | | | | | | | | allow reorder to affect eager loading correctly
| * | | | | allow reorder to affect eager loading correctlyMatt Jones + Scott Walker2011-12-281-0/+10
| | | | | |
* | | | | | Fix CIJon Leighton2011-12-285-25/+25
| | | | | |
* | | | | | Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-286-11/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
* | | | | | Support configuration on ActiveRecord::Model.Jon Leighton2011-12-282-27/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem: We need to be able to specify configuration in a way that can be inherited to models that include ActiveRecord::Model. So it is no longer sufficient to put 'top level' config on ActiveRecord::Base, but we do want configuration specified on ActiveRecord::Base and descendants to continue to work. So we need something like class_attribute that can be defined on a module but that is inherited when ActiveRecord::Model is included. The solution: added ActiveModel::Configuration module which provides a config_attribute macro. It's a bit specific hence I am not putting this in Active Support or making it a 'public API' at present.
* | | | | Fix a fixtures test case with table prefix/suffixAlexey Muranov2011-12-271-23/+37
| | | | | | | | | | | | | | | | | | | | Make sure the table name of a model is reset in a test case after assigning ActiveRecord::Base.table_name_prefix and ActiveRecord::Base.table_name_suffix.
* | | | | remove checks for encodings availabilitySergey Nartimov2011-12-254-20/+10
| | | | |
* | | | | Intercept sends in Model::DeprecationProxyJon Leighton2011-12-241-1/+3
| | | | |
* | | | | deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-242-6/+2
| | | | |
* | | | | Add test to ensure AR::Model initialization works correctlyJon Leighton2011-12-241-0/+5
| | | | |
* | | | | Add deprecation for the change to the active_record load hookJon Leighton2011-12-241-0/+14
| | | | |
* | | | | Support nested AR::ModelsJon Leighton2011-12-241-0/+4
| | | | |
* | | | | Don't include anything else if AR::Model has already been includedJon Leighton2011-12-241-0/+5
| | | | |
* | | | | Make PredicateBuilder recognise AR::ModelJon Leighton2011-12-241-0/+6
| | | | |