mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-01 05:09:40 +00: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:
parent
261d989431
commit
90e16a35c5
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user