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. /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
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.> /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 >
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 >
On 13-Feb-07, at 4:01 PM, aslak hellesoy 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. >spec.opts seems to be very picky about extra whitespace. I ran into a very similar stack trace (I had to first test --color in place of -- colour to se if that was the problem.. :). After I removed extra whitespace from the end of the file it worked. I also ran into a problem when there is no spec.opts file: /opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/runner/ option_parser.rb:143:in `readlines'': No such file or directory - / Users/wlarsen/Sites/roar/roar_test/config/../spec/spec.opts (Errno::ENOENT) from /opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.0/lib/spec/ runner/option_parser.rb:143:in `parse'' It would be nice if there is a test for the file, and it is only used if it exists. Wayne --- http://waynelarsen.com http://nanoware.com