aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_tempfile.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-07 15:32:07 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-07 15:32:07 +0000
commit05e52bf46bfcbfb288ef841008358e04e58ceab4 (patch)
treee8ec404ffe5a6fe44dad14b4cd82f0502c8492d2 /test/test_tempfile.rb
parentcc3350f118d60fe5ccd254cbe3e6b5e6e0ee3916 (diff)
downloadruby-05e52bf46bfcbfb288ef841008358e04e58ceab4.tar.gz
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.rb14
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
+