Skip to content

Expanding with unused empty array values #88

@gerwitz

Description

@gerwitz

Passing in an unused value that is an empty array causes an entertaining failure.

Expander.expand() replaces the corresponding key with an empty array:

values = values.each_with_object({}){ |(key, value), new_hash|

Then the mapping throws an error, which is "handled" by Expander.error_for() which attempts to sort the keys, naturally causing "ArgumentError - comparison of Symbol with Array"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions