From f306f9a1702a8799c78620ec954cc7c2e943c93b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 4 Jan 2012 17:11:15 -0800 Subject: call super from setup --- activerecord/test/active_record/test_case.rb | 4 ++++ activerecord/test/cases/schema_dumper_test.rb | 1 + 2 files changed, 5 insertions(+) (limited to 'activerecord/test') 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 -- cgit v1.2.3