ruby-changes:62937
From: Nobuyoshi <ko1@a...>
Date: Mon, 14 Sep 2020 18:28:36 +0900 (JST)
Subject: [ruby-changes:62937] 50bce2065d (master): [ruby/tmpdir] Prefer better failure message
https://git.ruby-lang.org/ruby.git/commit/?id=50bce2065d From 50bce2065d5376b38a6eef86ab5c3df809db4787 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 13 Jul 2020 19:21:01 +0900 Subject: [ruby/tmpdir] Prefer better failure message https://github.com/ruby/tmpdir/commit/ac12877306 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' https://github.com/ruby/ruby/blob/trunk/test/test_tmpdir.rb#L5 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/