diff options
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 63159ad9a..d163c10b2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -173,6 +173,11 @@ class ActiveSupport::TestCase ActiveRecord::Base.connection.adapter_name =~ /postgresql/i end + def quoted_date(date) + date = Date.parse(date) if date.is_a?(String) + ActiveRecord::Base.connection.quoted_date(date) + end + def assert_save(object) saved = object.save message = "#{object.class} could not be saved" |