diff options
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 72c064386..4677bd7fe 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -163,6 +163,10 @@ class ActiveSupport::TestCase hs end + def sqlite? + ActiveRecord::Base.connection.adapter_name =~ /sqlite/i + end + def assert_save(object) saved = object.save message = "#{object.class} could not be saved" |