Hi David,
Thanks for your response.

Do you think rspec-core should provide an options like this?
I am going to submit a PR on github with this feature implemented.

With regards,
Nalesso Antonio

On Wednesday, 13 November 2013 11:24:01 UTC, [email protected] wrote:
>
> There's currently no exception feature, but rspec loads all files matching 
> the glob pattern "spec/**/*_spec.rb" by default (run "rspec --help" to see 
> the command line options). This can be overridden on the command line or in 
> .rspec (or ~/.rspec). So given:
>
> $ ls spec
> dummy foo bar
> $ rspec --pattern "spec/{foo,bar}/**/*_spec.rb"
>
> Depending on your shell and your glob fu, there might be a way to exclude 
> the spec/dummy directory using a negation, but I haven't figured out how to 
> do that yet.
>
> HTH,
> David
>
>
>
>
> On Tue, Nov 12, 2013 at 11:24 PM, Nalesso Moreira 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi there,
>> My test suite is failing because rspec is loading the tests of a rails 
>> dummy
>> app located in spec/dummy/spec/**/*.rb.
>>
>> Here is a better explanation:
>>
>> Given a dir spec
>> And I have a rails app in spec/dummy
>> When I run rspec command
>> Then rspec should not load tests in spec/dummy/spec/**/*.rb
>> And all my tests mustt pass
>>
>> Does anybody know how I could sort of add_exception like autotest
>> does not to fetch/load this particular dir?
>>
>> With regards,
>> Nalesso Moreira
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "rspec" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/rspec/0a23b642-d0df-4493-9f53-d78752989e5a%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/f56c2425-3f06-4f04-af99-e2eae02e5aad%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to