diff options
Diffstat (limited to 'activerecord/test/active_record')
-rw-r--r-- | activerecord/test/active_record/test_case.rb | 4 |
1 files changed, 4 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 |