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

:without => {:class => 'not wanted classes']} option? #18

Closed jmuheim closed 11 years ago

jmuheim commented 12 years ago

I really like your gem, but I miss the :without option:

rendered.should have_tag('form', :with => { :class => 'wanted classes'}, :without => {:class => 'not wanted classes'}) do
  # ...
end

Also, it would be nice to tell that exactly the mentioned classes exist, and no others. Is there anything like that? Thank you.

kucaahbe commented 12 years ago

currently this is not implemented, but in "todo": CHANGELOG. But unfortunately right now I have no ability to implement that, sorry.

jmuheim commented 12 years ago

okay, thanks anyway for your response.

manuelmeurer commented 11 years ago

https://github.com/kucaahbe/rspec-html-matchers/pull/23

kucaahbe commented 11 years ago

merged and released in 0.4.2 version