Skip to content

Commit

Permalink
backport skip to the AR base class
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed May 13, 2011
1 parent ce1a1b4 commit a44f228
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions activerecord/lib/active_record/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ def cleanup_identity_map
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
Expand Down

0 comments on commit a44f228

Please sign in to comment.