summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-14 16:31:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-14 16:31:11 +0000
commit90e16a35c5d85d8f3aed31ffe040bddfab2c9109 (patch)
tree5ca16c67fc761cf9953ef4277a9f0ec3b3fa6bd1 /test/test_helper.rb
parent261d9894312f9aa65cff944777fb5b1fa5dbdfde (diff)
downloadredmine-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.rb4
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"