diff options
-rw-r--r-- | activerecord/test/active_record/test_case.rb | 4 | ||||
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/active_record/test_case.rb b/activerecord/test/active_record/test_case.rb index 2f18eba157..64ecef2077 100644 --- a/activerecord/test/active_record/test_case.rb +++ b/activerecord/test/active_record/test_case.rb @@ -53,5 +53,9 @@ module ActiveRecord ensure ActiveRecord::SQLCounter.ignored_sql = prev_ignored_sql end + + def sqlite3? connection + connection.class.name.split('::').last == "SQLite3Adapter" + end end end diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index dd6d7e52d5..724632489b 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -3,6 +3,7 @@ require "cases/helper" class SchemaDumperTest < ActiveRecord::TestCase def setup + super @stream = StringIO.new end |