Skip to content

Mutable keys vs symbol one #3

@robert-hromej

Description

@robert-hromej

This could be nasty bug for developers.Maybe it is good idea to handle such cases by notifyiing user.

it "should raise error for duplicate keys" do
struct = DeepStruct.wrap({:a => "hello", 'a' => "world"})
struct.a.should eq struct[:a]
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions