[rspec-devel] Build Breaking?

Brian Takita brian.takita at gmail.com
Sun Jan 7 16:30:44 EST 2007


On 1/7/07, David Chelimsky <dchelimsky at gmail.com> wrote:
>
> On 1/6/07, Wilson Bilkovich <wilsonb at gmail.com> wrote:
> > On 1/6/07, Brian Takita <brian.takita at gmail.com> wrote:
> > > On 1/6/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > > >
> > > > This was already reported as a bug. It does seem to be related to
> ruby
> > > versions.
> > > >
> > > >
> > >
> http://rubyforge.org/tracker/index.php?func=detail&aid=7344&group_id=797&atid=3149
> > >
> > > I see. What would be a good way to make this spec less brittle?
> > > I can think of two things.
> > > 1. Make a Ruby 1.8.5 specific html file to compare against. It would
> need to
> > > be genetated because the absolute path is included in the backtrace.
> > > 2. Use Hpricot to specify certain parts of the document.
> > >
>
> I'm more inclined to go w/ two versions of the file. We've discovered
> bugs a couple of times because that file is so specific.


The only thing is ruby 1.8.5 has the full path in the backtrace. This
wouldn't work with a static html file, but does work with erb...
This does introduce the need for branching logic in the spec. Is that okay?

>
> > We could 'eat our own dog food' by using the assert_select port. I
> > suppose that would introduce a dependency between the two sections of
> > the project, though.
>
> Right. Interesting idea, but we don't want that dependency.
>
> Thanks,
> David
>
> > _______________________________________________
> > rspec-devel mailing list
> > rspec-devel at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-devel
> >
> _______________________________________________
> rspec-devel mailing list
> rspec-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-devel/attachments/20070107/2a4a97aa/attachment.html 


More information about the rspec-devel mailing list