Have_tag and line numbers

When I’ve got a view example like this:

1: response.should have_tag “fieldset#children” do
2: with_tag “child”
3: end

If it can’t find ‘child’, the error seems to come back as my_spec.rb:1
instead of my_spec.rb:2.

Has anyone else experienced this? I just spent a while tracking down
what I
assumed was a problem in my have_tag only to discover it was a problem
my with_tag. Just trying to determine if I’m mis-understanding
something or
if this is a bug I should file in the tracker?

  • Geoffrey

This is fixed in trunk.