diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-16 13:52:17 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-16 13:52:17 +0000 |
| commit | bb2fe14c0498861540770391617e214701b10d90 (patch) | |
| tree | c2f27ed08d0badaad42a1c42c21569b5f70c9fd9 | |
| parent | b595ebdb5b6c41e0508eb802abb311972cd4ed40 (diff) | |
| download | ruby-bb2fe14c0498861540770391617e214701b10d90.tar.gz ruby-bb2fe14c0498861540770391617e214701b10d90.tar.xz ruby-bb2fe14c0498861540770391617e214701b10d90.zip | |
* lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
typo fixed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | lib/minitest/unit.rb | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -7,6 +7,9 @@ Tue Dec 16 22:15:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of): should assert by instance_of?, not ===. [ruby-dev:37458] + * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of): + typo fixed. + Tue Dec 16 21:59:29 2008 NAKAMURA Usaku <usa@ruby-lang.org> * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support. diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb index 25cb65c54..cbec247d5 100644 --- a/lib/minitest/unit.rb +++ b/lib/minitest/unit.rb @@ -104,7 +104,7 @@ module MiniTest msg = message(msg) { "Expected #{mu_pp(obj)} to be an instance of #{cls}, not #{obj.class}" } flip = (Module === obj) && ! (Module === cls) # HACK for specs obj, cls = cls, obj if flip - assert obj.instance_of?(obj), msg + assert obj.instance_of?(cls), msg end def assert_kind_of cls, obj, msg = nil # TODO: merge with instance_of |
