test/glob/symbolize_keys_test.rb in glob-0.2.1 vs test/glob/symbolize_keys_test.rb in glob-0.2.2
- old
+ new
@@ -2,11 +2,11 @@
require "test_helper"
class SymbolizeKeysTest < Minitest::Test
test "symbolizes hash" do
- input = {"a" => {"b" => 1}}
- expected = {a: {b: 1}}
+ input = {"a" => {"b" => 1}, 42 => "the answer"}
+ expected = {a: {b: 1}, "42": "the answer"}
actual = Glob::SymbolizeKeys.call(input)
assert_equal expected, actual
end