diff options
-rw-r--r-- | ext/dbm/extconf.rb | 2 | ||||
-rw-r--r-- | test/dbm/test_dbm.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb index 04f751d776..514aa3f8b0 100644 --- a/ext/dbm/extconf.rb +++ b/ext/dbm/extconf.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # configure option: # --with-dbm-type=COMMA-SEPARATED-NDBM-TYPES # 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 |