diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-11 11:48:14 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-13 14:33:53 -0800 |
commit | 974a6402d70fa6bb1ecfc43b4925717b474df4d0 (patch) | |
tree | eda16b5d5fd6101a2b01e4d858432be993f1a15f /activerecord/test/cases/migration | |
parent | bc276fbc2a94778686e3ec4a950926083b4e9778 (diff) | |
download | rails-974a6402d70fa6bb1ecfc43b4925717b474df4d0.tar.gz rails-974a6402d70fa6bb1ecfc43b4925717b474df4d0.tar.bz2 rails-974a6402d70fa6bb1ecfc43b4925717b474df4d0.zip |
moving logger test to its own file
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/logger_test.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration/logger_test.rb b/activerecord/test/cases/migration/logger_test.rb new file mode 100644 index 0000000000..a892afda91 --- /dev/null +++ b/activerecord/test/cases/migration/logger_test.rb @@ -0,0 +1,17 @@ +require "cases/helper" + +module ActiveRecord + class Migration + class LoggerTest < ActiveRecord::TestCase + def test_migration_should_be_run_without_logger + previous_logger = ActiveRecord::Base.logger + ActiveRecord::Base.logger = nil + assert_nothing_raised do + ActiveRecord::Migrator.migrate(MIGRATIONS_ROOT + "/valid") + end + ensure + ActiveRecord::Base.logger = previous_logger + end + end + end +end |