#182 ✓resolved
Rob Holland

Nesting should and should_not and have_xpath

Reported by Rob Holland | March 2nd, 2009 @ 08:25 AM

The following spec fails when added to have_selector_spec.rb.

it "should support mixing positive and negative assertions" do
  @body.should have_selector("ul") do |n|
    n.should_not have_selector("li", :content => "Third")

Guessing the issue is with HaveXpath.matches?

I'm afraid I wasn't able to grasp how the code there works.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Referenced by