aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
Commit message (Collapse)AuthorAgeFilesLines
* get rid of using instance_variable_names method from ASSergey Nartimov2012-01-071-1/+1
| | | | | - instance_variables return symbols in 1.9 - there is instance_variable_defined? method
* Fixed after_initialize callbacks call on AR model #dupBogdan Gusiev2012-01-072-0/+13
|
* require test/unit and sort test orderAaron Patterson2012-01-061-1/+1
|
* Fixed nil field value uniqueness checkpyromaniac2012-01-061-0/+12
|
* Revert "Merge pull request #2325 from pyromaniac/master"José Valim2012-01-061-12/+0
| | | | | | | It breaks the build for mysql. This reverts commit 958d25df4a1b0d41ce5deeeb0739c93b49bbd18d, reversing changes made to 8f309e31057e1b26fefedb199ab0526126fb1fe4.
* Merge pull request #4343 from carlosantoniodasilva/activerecord-1.9-compatJosé Valim2012-01-052-4/+4
|\ | | | | Activerecord 1.9 compat
| * Revert "Regexp.union seems to have different results in 1.8"Carlos Antonio da Silva2012-01-061-3/+3
| | | | | | | | | | | | This reverts commit d80e4ee20e690dfc0f4ec31c41b873d607462872. No need to care about 1.8 anymore, so reverting :)
| * Revert "Add return for 1.8.7"Carlos Antonio da Silva2012-01-061-1/+1
| | | | | | | | | | | | This reverts commit 665ef116ac9000d514c03fc61b216513f5cb7b25. There is no need for the return anymore, so reverting.
* | Fixed nil field value uniqueness checkpyromaniac2012-01-061-0/+12
|/
* test a subclass so that the removed method does not imact other testsAaron Patterson2012-01-051-2/+5
|
* do not require a file that is not usedAaron Patterson2012-01-051-0/+1
|
* 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
| | |
* | | Revert "active record base class test case should not be public"Santiago Pastorino2012-01-051-61/+0
| | | | | | | | | | | | | | | People use this! This reverts commit 071c8bf62ac7ffdb587268a6789fd825d0dae2a6.
* | | call super from setupAaron Patterson2012-01-042-0/+5
| | |
* | | call superAaron Patterson2012-01-041-0/+10
| | |
* | | clear the sql counter on teardown so the GC can do it's thingAaron Patterson2012-01-041-0/+4
| | |
* | | active record base class test case should not be publicAaron Patterson2012-01-041-0/+53
| | |
* | | 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-033-1/+14
|\ \ | | | | | | Polymorphic with optimistic lock and counter cache should be destroyed
| * | Merge branch 'master' of git://github.com/rails/railsDmitry Polushkin2011-12-31123-888/+2426
| |\|
| * | Merge branch 'master' of git://github.com/rails/railsDmitry Polushkin2011-10-054-4/+20
| |\ \
| * \ \ 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-1510-73/+84
| |\ \ \ \
| * | | | | Test polymorphic record with optimistic locking and counter cache should be ↵Dmitry Polushkin2011-09-093-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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-307-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2921-94/+162
| | | | |