On Feb 10, 8:56 pm, Corey Haines <[email protected]> wrote:
> > Message: 3
> > Date: Tue, 8 Feb 2011 18:32:26 -0800 (PST)
> > From: Justin Ko <[email protected]>
> > To: [email protected]
> > Subject: Re: [rspec-users] Excluding a spec subdirectory from rake
> >        spec
> > Message-ID:
> >        <[email protected]>
> > Content-Type: text/plain; charset=ISO-8859-1
>
> > On Feb 8, 6:49?pm, Corey Haines <[email protected]> wrote:
> >> I have a directory in my spec directory that I want to exclude from rake 
> >> spec
>
> >> That is, I have
> >> spec/lib_no_rails
>
> >> And I don't want it to run when I do rake spec
>
> >> Best way?
>
> >> Thanks.
> >> -Corey
>
> >> --http://www.coreyhaines.com
> >> The Internet's Premiere source of information about Corey Haines
> >> _______________________________________________
> >> rspec-users mailing list
> >> [email protected]http://rubyforge.org/mailman/listinfo/rspec-users
>
> > Is it for specs that make live api calls? Here is an alternative to
> > have a "remote" directory:https://gist.github.com/812278
>
> No, it is a directory that I want to run without loading rails. It has
> its own spec_helper.
>
> -Corey
>
> --http://www.coreyhaines.com
> The Internet's Premiere source of information about Corey Haines
> _______________________________________________
> rspec-users mailing list
> [email protected]http://rubyforge.org/mailman/listinfo/rspec-users

In that case, instead of overriding the default "spec" rake task, and
it has its own spec_helper, I would put it in its own top-level
directory. It would also have a Gemfile to load RSpec. Here is an
example, you can see the "spec_rails" directory: 
https://github.com/justinko/diagnostics
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to