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

Subclass AS::TestCase to get custom assertions

This commit is contained in:
Jeremy Kemper 2008-11-07 12:59:29 -05:00
parent 70c2fcab09
commit f12a2b4820

View file

@ -1,6 +1,6 @@
require 'abstract_unit'
class DurationTest < Test::Unit::TestCase
class DurationTest < ActiveSupport::TestCase
def test_inspect
assert_equal '1 month', 1.month.inspect
assert_equal '1 month and 1 day', (1.month + 1.day).inspect