rspec-html-matchers icon indicating copy to clipboard operation
rspec-html-matchers copied to clipboard

with_tag matches parent tag

Open vfonic opened this issue 7 years ago • 1 comments

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.

vfonic avatar Jul 23 '17 08:07 vfonic

I'm seeing this as well.

tammersaleh avatar Jan 10 '19 16:01 tammersaleh