kucaahbe / rspec-html-matchers

Old school have_tag, with_tag(and more) matchers for rspec 3 (Nokogiri powered)
http://rubygems.org/gems/rspec-html-matchers
MIT License
199 stars 90 forks source link

:seen Option Not Matching Seen Text #73

Closed sshaw closed 4 years ago

sshaw commented 4 years ago

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

randoum commented 4 years ago

Please update to 0.9.3