diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-07 15:32:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-07 15:32:07 +0000 |
commit | 05e52bf46bfcbfb288ef841008358e04e58ceab4 (patch) | |
tree | e8ec404ffe5a6fe44dad14b4cd82f0502c8492d2 /test/test_tempfile.rb | |
parent | cc3350f118d60fe5ccd254cbe3e6b5e6e0ee3916 (diff) |
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r-- | test/test_tempfile.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb new file mode 100644 index 0000000000..c4234e551d --- /dev/null +++ b/test/test_tempfile.rb @@ -0,0 +1,14 @@ +require 'test/unit' +require 'tempfile' + +class TestTempfile < Test::Unit::TestCase + module M + end + + def test_extend + o = Tempfile.new("foo") + o.extend M + assert(M === o, "[ruby-dev:32932]") + end +end + |