mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Extract assert assertion to assert_include and assert_not_include.
This commit is contained in:
parent
8705dba194
commit
6eeacbbc36
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ class JSONCommonInterfaceTest < Test::Unit::TestCase
|
|||
temp_file_containing(@json) do |filespec|
|
||||
parsed_object = JSON.public_send(method_name, filespec, symbolize_names: true)
|
||||
key_classes = parsed_object.keys.map(&:class)
|
||||
assert key_classes.include?(Symbol) && (! key_classes.include?(String))
|
||||
assert_include(key_classes, Symbol)
|
||||
assert_not_include(key_classes, String)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue