kucaahbe/rspec-html-matchers

:seen Option Not Matching Seen Text

Closed this issue · 1 comments

sshaw commented

This does not match:

expect(<<~HTML).to have_tag("p", :seen => "The following thangz ... 4 days")
<p>
  The following thangz ...
  4
  days
</p>
HTML

Looks like :seen only ignores leading and trailing space? It should match what's seen by the user: The following thangz ... 4 days

Please update to 0.9.3