mirror of
https://github.com/redmine/redmine.git
synced 2026-03-04 03:21:24 +01:00
Missing test helper (#18537).
git-svn-id: http://svn.redmine.org/redmine/trunk@13761 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user