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:
parent
70c2fcab09
commit
f12a2b4820
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue