[rspec-users] have_tag and line numbers

Geoffrey Wiseman geoffrey.wiseman at gmail.com
Mon Oct 1 13:30:19 EDT 2007


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 with
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
-- 
Geoffrey Wiseman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071001/a578b8da/attachment.html 


More information about the rspec-users mailing list