summaryrefslogtreecommitdiff
path: root/test/test_tmpdir.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-13 19:21:01 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-14 18:21:46 +0900
commit50bce2065d5376b38a6eef86ab5c3df809db4787 (patch)
tree8c054f7056507060adb8fe71fa980a5d3d1edac3 /test/test_tmpdir.rb
parent9fbbbadc9634ec4cdfe378bba62bfb706f4bb03a (diff)
[ruby/tmpdir] Prefer better failure message
https://github.com/ruby/tmpdir/commit/ac12877306
Diffstat (limited to 'test/test_tmpdir.rb')
-rw-r--r--test/test_tmpdir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_tmpdir.rb b/test/test_tmpdir.rb
index 50583b5..5cd0b5e 100644
--- a/test/test_tmpdir.rb
+++ b/test/test_tmpdir.rb
@@ -5,7 +5,7 @@ require 'tmpdir'
class TestTmpdir < Test::Unit::TestCase
def test_tmpdir_modifiable
tmpdir = Dir.tmpdir
- assert_equal(false, tmpdir.frozen?)
+ assert_not_predicate(tmpdir, :frozen?)
tmpdir_org = tmpdir.dup
tmpdir << "foo"
assert_equal(tmpdir_org, Dir.tmpdir)