diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-14 16:31:11 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-14 16:31:11 +0000 |
commit | 90e16a35c5d85d8f3aed31ffe040bddfab2c9109 (patch) | |
tree | 5ca16c67fc761cf9953ef4277a9f0ec3b3fa6bd1 /test/test_helper.rb | |
parent | 261d9894312f9aa65cff944777fb5b1fa5dbdfde (diff) | |
download | redmine-90e16a35c5d85d8f3aed31ffe040bddfab2c9109.tar.gz redmine-90e16a35c5d85d8f3aed31ffe040bddfab2c9109.zip |
Missing test helper (#18537).
git-svn-id: http://svn.redmine.org/redmine/trunk@13761 e93f8b46-1217-0410-a6f0-8f06a7374b81
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" |