Skip to content
Browse files

Fix assertion in test_tmpnam

  • Loading branch information...
1 parent 2b457ba commit 1ea1e3270a45390ea467f76e4f7aea2ba5dfc66a rmagick committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/Magick.rb
View
5 test/Magick.rb
@@ -147,10 +147,11 @@ def test_tmpnam
info = Magick::Image::Info.new
# does not exist at first
- assert_raise(NameError) { Magick._tmpnam_ }
+ assert_raise(NameError) { x = Magick._tmpnam_ }
info.texture = texture
- assert_nothing_raised { Magick._tmpnam_ }
+ # now it exists
+ assert_nothing_raised { x = Magick._tmpnam_ }
assert_equal(1, Magick._tmpnam_)
info.texture = texture

0 comments on commit 1ea1e32

Please sign in to comment.
Something went wrong with that request. Please try again.