Corey Haines
2011-Feb-09 01:49 UTC
[rspec-users] Excluding a spec subdirectory from rake spec
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
Justin Ko
2011-Feb-09 02:32 UTC
[rspec-users] Excluding a spec subdirectory from rake spec
On Feb 8, 6:49?pm, Corey Haines <coreyhai... at gmail.com> 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 > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersIs it for specs that make live api calls? Here is an alternative to have a "remote" directory: https://gist.github.com/812278
Corey Haines
2011-Feb-11 03:56 UTC
[rspec-users] Excluding a spec subdirectory from rake spec
> > Message: 3 > Date: Tue, 8 Feb 2011 18:32:26 -0800 (PST) > From: Justin Ko <jko170 at gmail.com> > To: rspec-users at rubyforge.org > Subject: Re: [rspec-users] Excluding a spec subdirectory from rake > ? ? ? ?spec > Message-ID: > ? ? ? ?<40f49a5a-0a21-417c-a1b7-7b4b929452e9 at v7g2000yqh.googlegroups.com> > Content-Type: text/plain; charset=ISO-8859-1 > > > > On Feb 8, 6:49?pm, Corey Haines <coreyhai... at gmail.com> 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 >> rspec-us... at rubyforge.orghttp://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
Justin Ko
2011-Feb-11 05:27 UTC
[rspec-users] Excluding a spec subdirectory from rake spec
On Feb 10, 8:56?pm, Corey Haines <coreyhai... at gmail.com> wrote:> > Message: 3 > > Date: Tue, 8 Feb 2011 18:32:26 -0800 (PST) > > From: Justin Ko <jko... at gmail.com> > > To: rspec-us... at rubyforge.org > > Subject: Re: [rspec-users] Excluding a spec subdirectory from rake > > ? ? ? ?spec > > Message-ID: > > ? ? ? ?<40f49a5a-0a21-417c-a1b7-7b4b92945... at v7g2000yqh.googlegroups.com> > > Content-Type: text/plain; charset=ISO-8859-1 > > > On Feb 8, 6:49?pm, Corey Haines <coreyhai... at gmail.com> 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 > >> rspec-us... at rubyforge.orghttp://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 > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-usersIn 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