aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/support
Commit message (Collapse)AuthorAgeFilesLines
* Reset ActiveRecord::SchemaDumper.ignore_tables value after changed in testsAkira Matsuda2014-09-031-0/+9
|
* fk: `:primary_key` option for non-standard pk's.Yves Senn2014-06-261-2/+2
|
* pg test, examples for default values and schema dumping of point types.Yves Senn2014-06-031-0/+11
| | | | /cc @sgrif
* Add ConnectionHelper to refactor tests.Guo Xiang Tan2014-04-032-8/+14
|
* Allow postgresql enum_test to be run in random order.Guo Xiang Tan2014-04-011-0/+8
| | | | Creating and dropping similar tables within the same connection causes postgresql to look up old values in the cache of tables which have already been dropped.
* Extract with_example_table into helper method.Guo Xiang Tan2014-03-201-0/+8
| | | | This setups the helper method which other tests can benefit from.
* Deprecate use of string in establish_connection as connection lookupJosé Valim2013-12-241-2/+2
|
* Revert "Fix annoy warning, when executing testcase."Andrey Deryabin2012-11-301-11/+0
| | | | | | This reverts commit a3024f81228d7b3b446408114a5dc2a86870cd35. REASON: Since warning doesn't exist
* Remove ActiveRecord::ModelJon Leighton2012-10-261-3/+3
| | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced.
* Rotate the debug.log on each 100MBRafael Mendonça França2012-10-201-1/+1
|
* Revert "truncate debug.log on each test run"Yasuo Honda2012-10-201-2/+1
| | | | | | | | | This reverts commit 98043c689f945cabffc043f4bdc80ab2a7edc763. Because if every time `debug.log` is truncated, developers have no way to see the previous ActiveRecord unit test results. `debug.log` file can be easily reduced by executing `$ touch /dev/null > debug.log` periodically.
* truncate debug.log on each test runFrancesco Rodriguez2012-10-191-1/+2
|
* Fix annoy warning, when executing testcase.kennyj2012-09-111-0/+11
|
* Use method compilation for association methodsJon Leighton2012-08-101-2/+2
| | | | | | | | | Method compilation provides better performance and I think the code comes out cleaner as well. A knock on effect is that methods that get redefined produce warnings. I think this is a good thing. I had to deal with a bunch of warnings coming from our tests, though.
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-1/+1
|
* added test for #3732Rick Martinez2012-02-101-1/+2
|
* Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-3/+3
| | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
* Changed the old logger to new active support loggerKarunakar (Ruby)2011-12-211-2/+2
|
* Add require 'pathname' as it has not already been required in some circumstancesJon Leighton2011-06-171-0/+1
|
* Add support for using an ARCONFIG environment variable to specify the ↵Jon Leighton2011-06-121-4/+7
| | | | location of the config.yml file for running the tests
* Print out information about whether the identity map is on or off when ↵Jon Leighton2011-06-091-1/+1
| | | | running unit tests
* Fix adapter_test.rb to make no assumptions about the database nameJon Leighton2011-06-051-2/+9
|
* Fix typoJon Leighton2011-06-051-1/+1
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-042-0/+52
RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.