[Rspec-devel] warnings when running rake test

David Chelimsky dchelimsky at gmail.com
Sun Aug 27 11:51:51 EDT 2006


On 8/27/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 8/27/06, David Chelimsky <dchelimsky at gmail.com> wrote:
> > On 8/27/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> > > On 8/27/06, David Chelimsky <dchelimsky at gmail.com> wrote:
> > >
> > > > Another weird one is in /test/spec/test_to_spec/testfiles/test_unit_api_test.rb:
> > > >
> > > > warning: method redefined; discarding old setup
> > > >
> > > > Wassup w/ that?
> > > >
> > >
> > > def setup
> > > end
> > >
> > > def setup
> > > end
> > >
> >
> > Yeah, but it only happens once in that file.
> >
>
> So it probably happens somewhere in a different file too. Ruby doesn't
> care about what file it happens in.

Ruby is so nice :)

Seriously - I don't see any other places where that particular class
is opened again. Maybe it's happening at runtime? If so, that's a
(*&^(*&^ing annoying warning.


>
> > > -probably something we ought to look into
> >
> > Agreed.


More information about the Rspec-devel mailing list