aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a repair_helper to repair changes to the validations inside ↵Murray Steele2008-12-191-0/+4
| | | | | | | | | | | | | | validations_test.rb [#674 state:resolved] Many of the tests in validations_test would add a new validation to models. However, only Topic was being reset with a fairly aggressive clearing of all validations. None of the other models being used however were recieving the same treatment. Now we use repair_validations(Topic) for the whole test case because most test cases use Topic and then the block form of repair_validations(<other_models>) inside any tests that use other models. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Require mocha >= 0.9.3, older versions don't work anymore [#1579 state:resolved]Hongli Lai (Phusion)2008-12-151-0/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add create_fixtures method for testsJeremy Kemper2008-11-151-0/+4
|
* Set up fixtures for AR testsJeremy Kemper2008-11-151-0/+8
|
* Remove fixtures from Test::Unit::TestCase. Mix in AR::TestFixtures instead.Jeremy Kemper2008-11-071-11/+6
|
* stop AR's debug.log filling with warnings about not being able to load ↵Frederick Cheung2008-09-141-0/+14
| | | | | | | | fixture classes [#1045 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* ensure tests load sibling Active Support instead of a gemJeremy Kemper2008-08-251-0/+1
|
* Add assert_sql helper method to check for specific SQL output in Active ↵Gabe da Silveira2008-07-141-5/+5
| | | | | | Record test suite. [#325 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now ↵Geoff Buesing2008-03-301-8/+0
| | | | | | bundled git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add uses_tzinfo to active record tests to prevent breaking the cc.rb build ↵Michael Koziarski2008-02-061-0/+8
| | | | | | etc. Closes #11034 [mpalmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require test/unit explicitly otherwise the at_exit handler doesn't get ↵Michael Koziarski2008-01-221-0/+1
| | | | | | called [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/railsJeremy Kemper2008-01-211-0/+46
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de