diff options
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration/logger_test.rb | 3 | ||||
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration/logger_test.rb b/activerecord/test/cases/migration/logger_test.rb index 2a0b4f5598..8466562daf 100644 --- a/activerecord/test/cases/migration/logger_test.rb +++ b/activerecord/test/cases/migration/logger_test.rb @@ -9,7 +9,7 @@ module ActiveRecord end end - def setup + def initialize(*args) super ActiveRecord::SchemaMigration.create_table ActiveRecord::SchemaMigration.delete_all @@ -31,3 +31,4 @@ module ActiveRecord end end end + diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index 9abc363546..abeb56fd3f 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -2,6 +2,11 @@ require "cases/helper" class SchemaDumperTest < ActiveRecord::TestCase + def initialize(*) + super + ActiveRecord::SchemaMigration.create_table + end + def setup super @stream = StringIO.new |