Skip to content

Commit

Permalink
Fix assertion in test_tmpnam
Browse files Browse the repository at this point in the history
  • Loading branch information
rmagick committed Apr 22, 2008
1 parent 2b457ba commit 1ea1e32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/Magick.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1ea1e32

Please sign in to comment.