kucaahbe/rspec-html-matchers

Unexpected result with html tag and body tag

Closed this issue · 2 comments


describe 'unexpected wrong result' do
  it 'MUST be TRUE with negative and html' do
    expect("<p>My paragraph.</p>").not_to have_tag 'html' # => failure !ERROR!
  end
  it 'MUST be TRUE with negative and body' do
    expect("<p>My paragraph.</p>").not_to have_tag 'body' # => failure !ERROR!
  end
end

Please update to 0.9.3

sorry for confusion, there is an issue about specifically matching these tags, please see #75 , in latest version (0.9.4) it's forbidden