diff options
Diffstat (limited to 'test/dbm/test_dbm.rb')
-rw-r--r-- | test/dbm/test_dbm.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb index d6211fcb31..0812b4023f 100644 --- a/test/dbm/test_dbm.rb +++ b/test/dbm/test_dbm.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'test/unit' require 'tmpdir' @@ -405,7 +405,7 @@ if defined? DBM assert_equal('foo', @dbm.delete(key) {|k| k.replace 'called block'; :blockval}) assert_equal(0, @dbm.size) - key = 'no called block' + key = 'no called block'.dup assert_equal(:blockval, @dbm.delete(key) {|k| k.replace 'called block'; :blockval}) assert_equal(0, @dbm.size) end |