[rspec-users] spec.opts

James Hughes hughes.james at gmail.com
Tue Feb 13 16:26:49 EST 2007


On 2/13/07, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> On 2/13/07, James Hughes <hughes.james at gmail.com> wrote:
> > Hi,
> >
> > Just built the gem from trunk for the first time and ran into an issue
> > with the generated spec.opts file (rev. 1493). Moving the file out of
> > the way fixed the problem. I'm not on windows, so this is not a
> > win32console gem issue as per the README.
> >
>
> You have to tell us the steps to reproduce this.
> It's odd that the spec.opts file is part of the backtrace.

I've discovered that this was due to the fact that I wasn't using the
rake task ('rake spec'). This particular time I ran the specs with
'spec spec/*'. I won't do that anymore.
Everything is fine when running 'rake spec', or even 'spec spec/'.
Sorry for the confusion.
jh

>
> > /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/expectations/sugar.rb:13:in
> > `call': undefined local variable or method `colour' for
> > #<Object:0xb7d289f0> (NameError)
> >         from /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/expectations/sugar.rb:13:in
> > `_method_missing'
> >         from /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/expectations/sugar.rb:9:in
> > `method_missing'
> >         from ./spec/spec.opts:1
> >         from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in
> > `load'
> >         from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:343:in
> > `new_constants_in'
> >         from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in
> > `load'
> >         from /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/runner/command_line.rb:22:in
> > `run'
> >         from /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/runner/command_line.rb:16:in
> > `run'
> >         from /usr/lib/ruby/gems/1.8/gems/rspec-0.8.0/bin/spec:4
> >         from /usr/bin/spec:18
> >
> >
> > James Hughes
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list