#386 new
Ashley Moran

Autotest fails when output includes a file:line ref

Reported by Ashley Moran | April 19th, 2008 @ 04:05 PM | in No-Milestone-Assigned

This came up using RGL (Ruby Graph Library). It produces failure output like this:

expected: blah blah blah,

got: #, @vertex_iterator=#> (using ==)

Unfortunately RSpec's autotest code sees the file references and returns almost the whole line "got: #

Fix is to make RSpec only treat file references at the end of the line as files to re-test (one character change!)

I've done this in a forked github repo and will make a pull request soon.

Comments and changes to this ticket

  • Ashley Moran

    Ashley Moran April 19th, 2008 @ 04:08 PM

    That got mangled by the formatter, here's another go at the failure line:

    got: #<RGL::ImplicitGraph:0x127a9d8 @directed=true, @adjacent_iterator=#<Proc:0x0125bc40@/opt/local/lib/ruby/gems/1.8/gems/rgl-0.3.1/lib/rgl/implicit.rb:131>, @vertex_iterator=#<Proc:0x0125bee8@/opt/local/lib/ruby/gems/1.8/gems/rgl-0.3.1/lib/rgl/implicit.rb:128>> (using ==)<

  • Ashley Moran

    Ashley Moran April 19th, 2008 @ 04:09 PM

    Much better :D

    And this is what RSpec currently tells autotest is the next file to reload:

    got: #<RGL::ImplicitGraph:0x127a9d8 @directed=true, @adjacent_iterator=#<Proc:0x0125bc40@/opt/local/lib/ruby/gems/1.8/gems/rgl-0.3.1/lib/rgl/implicit.rb:131>, @vertex_iterator=#<Proc:0x0125bee8@/opt/local/lib/ruby/gems/1.8/gems/rgl-0.3.1/lib/rgl/implicit.rb

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket