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]> 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].
> 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/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/CAKw-oWQ%3Du5ptwmeGQ0Y3KamMmV8HS3wwF7rNf0X9y%2Bf9tQXKAQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.