#269 new
Nicholas Rutherford

have_tag ignores attributes hash

Reported by Nicholas Rutherford | July 4th, 2009 @ 11:22 AM

in an rspec-rails view spec
where

  form.should have_selector("input",
    :type=>"text",
    :name => "site[site_name]",
    :value => "the site name"
    )

works correctly, testable by changing "text" to "textaaaaa" or similar causing a failure

using

  form.should have_tag("input",
    :type=>"text",
    :name => "site[site_name]",
    :value => "the site name"
    )

ignores the hash and does not cause a failure

I can't find any documentation for have_tag so I looked at the api code and it appeared to chain forward to have_selector so I expected the same behaviour.

No comments found

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

Pages