I may have found the problem. 

Looking through the backtrace, lib/merb-core/test/test_ext/rspec.rb
requires 'spec'. Rspec's spec.rb in turn requires 'spec/runner', and
that appears to be where the problem arises -- it tries to parse the
command line again.

Does rspec.rb actually _need_ spec/runner? If not, it would probably be
better to only require what's needed....

Shalon Wood

Shalon Wood <[email protected]> writes:

> I'm not requiring rspec at all -- a quick grep through my tree confirmed
> that.
>
> Shalon Wood
>
> Stephen Eley <[email protected]> writes:
>
>> I had this error in Rails.  It had something to do with double-loading
>> when I included rspec and rspec-rails with config.gem.  My suggestion
>> would be to not include RSpec, Cucumber, and friends in your
>> dependencies.rb file, and simply let the requires in your
>> spec_helper.rb and env.rb files load them for you.
>>
>>
>> On Thu, Apr 2, 2009 at 9:07 AM, Shalon Wood <[email protected]> wrote:
>>>
>>>
>>> Is anyone using autospec with AUTOFEATURE=true? When I try, the cucumber
>>> tests fail:
>>>
>>> /usr/bin/ruby1.8 /var/lib/gems/1.8/gems/cucumber-0.2.0/bin/cucumber
>>> --format progress --format rerun --out 
>>> /tmp/autotest-cucumber20090402-26440-bzyyd-0 features
>>>
>>> /var/lib/gems/1.8/gems/rspec-1.2.0/lib/spec/runner/options.rb:179:in
>>> `parse_format': When using several --format options only one of them can
>>> be without a file (RuntimeError)
>>>
>>> I haven't been able to figure out what's wrong...
>>>
>>> Shalon Wood
>>>
>>> --
>>>
>>> >
>>>
>>
>>
>>
>> -- 
>> Have Fun,
>>    Steve Eley ([email protected])
>>    ESCAPE POD - The Science Fiction Podcast Magazine
>>    http://www.escapepod.org
>>
>> >
>>
>
> -- 
>
> >
>

-- 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to