#90 ✓resolved
Peter Jaros

#within with a bad selector succeeds silently

Reported by Peter Jaros | December 10th, 2008 @ 06:01 PM | in 0.4

The code

within("#bogus") do |scope|

end

when there is no element with the id "bogus" does not raise an error. It also runs the block. The code

within("#bogus") do |scope|
  scope.dom
end

fails with a cryptic NoMethodError from calling nil.to_html.

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

Tags

Referenced by

Pages