Skip to content

with_tag matches parent tag #65

@vfonic

Description

@vfonic

If I have this string:
"<span>asd</span>"

and this matcher:

expect("<span>asd</span>").to have_tag(:span) do
  with_tag(:span) do
    with_tag(:span)
  end
end

This test will pass, while it should actually fail.

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