Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.
This repository was archived by the owner on Jul 29, 2022. It is now read-only.

A nil hash key should be checked for presence #3

@richdrich

Description

@richdrich

So generate:

assert h.key?(:name)
assert_nil h[:name]

or

assert h.key?(:name) && h[:name].nil?

not

assert_nil h[:name]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions