aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/test_case.rb
Commit message (Collapse)AuthorAgeFilesLines
* stop swallowing exceptions in assert_queries. Methods that raise anAaron Patterson2013-05-171-2/+2
| | | | | exception are unlikely to pass this assertion, but since the assertions raise an exception, the original exception is lost.
* Just ignore all PRAGMA queriesAkira Matsuda2013-01-221-1/+1
|
* Ignore schema queries on SQLite 3 as wellAkira Matsuda2013-01-221-1/+2
|
* Ignore "SHOW search_path" when counting PostgreSQL queriesAkira Matsuda2013-01-221-1/+1
|
* load active_support/deprecation in active_support/railsXavier Noria2012-08-021-1/+0
|
* Fix fragile #assert_queries implementation and usages.Steve Jorgensen2012-06-091-19/+31
| | | | | | | | | Several tests that passed when run in the order they are loaded by rake test were failing when run in different sequences due to problems with the implementation of assert_queries and assert_no_queries as well as incorrect assumptions made about how many queries might be executed by a database adapter in various cases.
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-10/+0
|
* Get ActiveRecord::TestCase back on its feet, despite deprecation. It ↵Jeremy Kemper2012-02-051-1/+61
| | | | requires SQLCounter which was moved to AR internal tests only.
* deprecated AR::TestCase in favor of AS::TestCaseAaron Patterson2012-01-241-0/+4
|
* Moving AR::TestCase in to the AR tests directoryAaron Patterson2012-01-241-31/+0
|
* Revert "active record base class test case should not be public"Santiago Pastorino2012-01-051-0/+61
| | | | | People use this! This reverts commit 071c8bf62ac7ffdb587268a6789fd825d0dae2a6.
* active record base class test case should not be publicAaron Patterson2012-01-041-53/+0
|
* remove ruby 1.8 stuff skip hack from ARVishnu Atrai2011-12-231-7/+0
|
* 'with_kcode' removed. Arun Agrawal2011-12-211-13/+0
| | | | Testing Sandbox removed.
* Make assert_no_queries literally enforce that there are no queries. As in, ↵Jon Leighton2011-06-121-0/+4
| | | | not a single line of SQL should be sent to the database, not even stuff that is ignored by assert_queries. The argument being that if you write assert_no_queries, you really do not want there to be any queries.
* If we're going to use a global variable, let's at least namespace itJon Leighton2011-06-121-6/+6
|
* Move BEGIN and COMMIT into IGNORED_SQL rather than having them as a special ↵Jon Leighton2011-06-121-1/+0
| | | | case in assert_queries
* Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-1/+1
|
* backport skip to the AR base classAaron Patterson2011-05-131-0/+7
|
* removing limits and offsets from COUNT queries unless both are specified. ↵Aaron Patterson2011-02-251-0/+1
| | | | [#6268 state:resolved]
* identity_map name is used for configuration, use IdentityMap to access it.Emilio Tagua2010-11-191-1/+1
|
* Test setup method should clean up IM.Emilio Tagua2010-11-191-0/+4
|
* Use just one repository and keep it in the current thread.Emilio Tagua2010-11-191-1/+0
|
* IdentityMap - Tests for IMMarcin Raczkowski2010-11-191-0/+7
|
* Update the ActiveRecord tests to not set unused optionsCarl Lerche2010-10-131-15/+0
| | | This makes a test fail, but it is revealing a bug in Arel master.
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-131-1/+1
| | | | This will hopefully make Active Record run a bit more faster.
* Adds title and proper formatting to docs.Rizwan Reza2010-06-161-0/+3
|
* Autoload AS test caseJoshua Peek2010-01-041-2/+0
|
* Show executed queries when assert_sql assertion fails [#2573 state:resolved]Emilio Tagua2009-04-281-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* DRY with_kcode in Active Record testsPratik Naik2009-03-071-0/+13
|
* Add support for nested object forms to ActiveRecord and the helpers in ↵Eloy Duran2009-02-011-0/+1
| | | | | | | | ActionPack Signed-Off-By: Michael Koziarski <michael@koziarski.com> [#1202 state:committed]
* Remove SQL Server cases from tests for latest adapter work to pass rails ↵Ken Collins2008-11-191-4/+2
| | | | | | expected behavior. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Remove superfluous requireJeremy Kemper2008-11-131-1/+0
|
* Move fixtures settings from AR::TestCase to railties test_helpJeremy Kemper2008-11-121-11/+1
|
* Remove fixtures from Test::Unit::TestCase. Mix in AR::TestFixtures instead.Jeremy Kemper2008-11-071-0/+3
|
* Default connection allow_concurrency to false (for PostgreSQL)Nick Sieger2008-09-041-0/+15
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Print the queries that were executed if assert_queries failsTarmo Tänav2008-08-261-1/+1
|
* Add assert_sql helper method to check for specific SQL output in Active ↵Gabe da Silveira2008-07-141-2/+13
| | | | | | Record test suite. [#325 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add options missing from earlier changesetMichael Koziarski2008-01-221-2/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Merge branch 'ar-test-cleanup' of git://git.geeksomnia.com/railsJeremy Kemper2008-01-211-0/+35
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de