aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/support
Commit message (Collapse)AuthorAgeFilesLines
* applies new string literal convention in activerecord/testXavier Noria2016-08-062-17/+17
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Deprecate `#table_exists?`, `#tables` and passing arguments to `#talbes`yui-knk2015-11-091-1/+1
| | | | | | | | | | Reported on #21509, how views is treated by `#tables` are differ by each adapters. To fix this different behavior, after Rails 5.0 is released, deprecate `#tables`. And `#table_exists?` would check both tables and views. To make their behavior consistent with `#tables`, after Rails 5.0 is released, deprecate `#table_exists?`.
* use correct DB connection for generated HABTM tableMatt Hanlon2015-08-071-0/+1
|
* Add YAML compatibility for objects from Rails 4.2Sean Griffin2015-03-102-0/+204
| | | | | | | | | | | As of Ruby 2.2, Psych can handle any object which is marshallable. This was not true on previous versions of Ruby, so our delegator types had to provide their own implementation of `init_with` and `encode_with`. Unfortunately, this doesn't match up with what Psych will do today. Since by the time we hit this layer, the objects will have already been created, I think it makes the most sense to just grab the current type from the class.
* 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.