Skip to content

Unexpected behavior of have_hash().without() #106

Open
@jesseclark

Description

@jesseclark

'have_hash(foo: 'bar').without(:some_key, :another_key)' passes even if the hash contains :some_key and/or :another_key. Looking at the implementation of #without, I don't think this was the intended outcome of this method.

This came up in the context of the discussion on a PR in global/web.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions