1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

22 commits

Author SHA1 Message Date
Yves Senn
ed1b747b85 pg test, examples for default values and schema dumping of point types.
/cc @sgrif
2014-06-03 13:46:32 +02:00
Guo Xiang Tan
f1169d9d25 Add ConnectionHelper to refactor tests. 2014-04-03 01:06:43 -07:00
Guo Xiang Tan
9896c5fba9 Allow postgresql enum_test to be run in random order.
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.
2014-04-01 21:34:11 -07:00
Guo Xiang Tan
79405a07a4 Extract with_example_table into helper method.
This setups the helper method which other tests can benefit from.
2014-03-20 11:48:17 -07:00
José Valim
ec11807368 Deprecate use of string in establish_connection as connection lookup 2013-12-24 10:18:54 +01:00
Andrey Deryabin
da67d192d2 Revert "Fix annoy warning, when executing testcase."
This reverts commit a3024f8122.

REASON: Since warning doesn't exist
2012-11-30 12:07:55 +04:00
Jon Leighton
9e4c41c903 Remove ActiveRecord::Model
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.
2012-10-26 15:51:02 +01:00
Rafael Mendonça França
64391cd520 Rotate the debug.log on each 100MB 2012-10-20 17:09:27 -03:00
Yasuo Honda
048866aa14 Revert "truncate debug.log on each test run"
This reverts commit 98043c689f.

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.
2012-10-20 04:30:07 +09:00
Francesco Rodriguez
98043c689f truncate debug.log on each test run 2012-10-19 12:11:38 -05:00
kennyj
a3024f8122 Fix annoy warning, when executing testcase. 2012-09-11 00:17:08 +09:00
Jon Leighton
6e57d5c584 Use method compilation for association methods
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.
2012-08-10 23:28:08 +01:00
Carlos Antonio da Silva
a8dd21d8b4 Remove IdentityMap 2012-03-13 20:08:54 -03:00
Rick Martinez
30b6d4f7f1 added test for #3732 2012-02-10 17:35:22 -05:00
Jon Leighton
dae7b65453 Support establishing connection on ActiveRecord::Model.
This is the 'top level' connection, inherited by any models that include
ActiveRecord::Model or inherit from ActiveRecord::Base.
2011-12-28 18:27:41 +00:00
Karunakar (Ruby)
730209a679 Changed the old logger to new active support logger 2011-12-21 23:00:06 +05:30
Jon Leighton
e510c2c642 Add require 'pathname' as it has not already been required in some circumstances 2011-06-17 14:55:34 +01:00
Jon Leighton
86bbba1ffb Add support for using an ARCONFIG environment variable to specify the location of the config.yml file for running the tests 2011-06-12 19:08:16 +01:00
Jon Leighton
4b371b602b Print out information about whether the identity map is on or off when running unit tests 2011-06-09 20:20:51 +01:00
Jon Leighton
523c7c2330 Fix adapter_test.rb to make no assumptions about the database name 2011-06-05 11:28:17 +01:00
Jon Leighton
3b7d100b51 Fix typo 2011-06-05 11:28:17 +01:00
Jon Leighton
253bb6b926 Refactor Active Record test connection setup. Please see the 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. 2011-06-04 23:47:03 +01:00