Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with_tag matches parent tag #65

Open
vfonic opened this issue Jul 23, 2017 · 1 comment
Open

with_tag matches parent tag #65

vfonic opened this issue Jul 23, 2017 · 1 comment

Comments

@vfonic
Copy link

vfonic commented Jul 23, 2017

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.

@tammersaleh
Copy link

I'm seeing this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants