1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

backport skip to the AR base class

This commit is contained in:
Aaron Patterson 2011-05-13 10:28:47 -07:00
parent ce1a1b47be
commit a44f228fde

View file

@ -13,6 +13,13 @@ module ActiveRecord
ActiveRecord::IdentityMap.clear
end
# Backport skip to Ruby 1.8. test/unit doesn't support it, so just
# make it a noop.
unless instance_methods.map(&:to_s).include?("skip")
def skip(message)
end
end
def assert_date_from_db(expected, actual, message = nil)
# SybaseAdapter doesn't have a separate column type just for dates,
# so the time is in the string and incorrectly formatted