#285 new

have_{tag,selector,xpath} :count option fails if the count is String instead of an Integer

Reported by m3talsmith | August 27th, 2009 @ 05:14 PM

When have_{tag,selector,xpath} is given a string representation of a number for the :count option the selector fails completely.


describe "specifying counts" do
  it "should convert a string to an integer for count" do
    @body.should have_selector("li", :count => "3")


Comments and changes to this ticket

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