[rspec-users] Problem running spec command for directory

Marcus Ahnve marcus at ahnve.com
Sun Feb 21 15:57:55 EST 2010


Hi,

I have a problem running the spec command in Rspec 1.3.0 with a
directory as parameter.

A spec for a MongoMapper document that works when run directly such as

$ spec spec/model/attendant_spec.rb

works fine. But the very same spec run glob-style:

$ spec spec

fails with MongoMapper validations seemingly added twice - full output
at http://pastie.org/835775.

According to the stack trace files seems to be required in the same
order as when run individually, but clearly something else is messed
up.

Is there something one should know about when running specs by glob?

Thanks for any help /Marcus

-- 
Marcus Ahnve
http://marcus.ahnve.net
phone: +46 8 56 22 33 94
twitter: mahnve


More information about the rspec-users mailing list