diff options
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 + |