aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
Commit message (Collapse)AuthorAgeFilesLines
* moving the table and index test to it's own fileAaron Patterson2012-01-122-19/+24
|
* Fix table_name in ActiveRecord with more than one abstract ancestorsPiotr Sarnacki2012-01-121-0/+11
| | | | | | | | | | | | | | | | | When subclassing abstract_class table_name should be always computed based on class name, no matter if superclass is subclassing base or another abstract_class. So: class FirstAbstract < ActiveRecord::Base self.abstract_class = true end class SecondAbstract < FirstAbstract self.abstract_class = true end class Post < SecondAbstract self.table_name #=> 'posts' (not 'second_abstracts') end
* on and ON are type casted to a true boolean columnSantiago Pastorino2012-01-111-0/+29
|
* Test that #[] and #[]= keep working when #read_attribute and ↵Tom Stuart2012-01-111-0/+33
| | | | #write_attribute are overridden
* Test ActiveRecord::Base#[]= as well as #write_attributeTom Stuart2012-01-111-1/+7
|
* all tested database support migrations, so stop making the tests conditionalAaron Patterson2012-01-101-1436/+1434
|
* adding missing requireAaron Patterson2012-01-101-0/+2
|
* move column ordering tests to it's own classAaron Patterson2012-01-102-46/+58
|
* refactoring migration testAaron Patterson2012-01-102-447/+415
|
* migrate(:down) method with table_name_prefixkennyj2012-01-111-0/+12
|
* Merge pull request #4370 from EnlightSolutions/validates_unique_associationAaron Patterson2012-01-091-0/+24
|\ | | | | Validates unique association
| * allow association as 1st uniqueness validation argDan Pickett2012-01-061-0/+12
| | | | | | #4321
| * allow an association as a scope parameterDan Pickett2012-01-061-0/+12
| | | | | | #4321
* | 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-071-0/+8
| |
* | 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
| | |
* | | 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
| | | | |