On Feb 10, 8:56 pm, Corey Haines <coreyhai...@gmail.com> wrote: > > Message: 3 > > Date: Tue, 8 Feb 2011 18:32:26 -0800 (PST) > > From: Justin Ko <jko...@gmail.com> > > To: rspec-us...@rubyforge.org > > Subject: Re: [rspec-users] Excluding a spec subdirectory from rake > > spec > > Message-ID: > > <40f49a5a-0a21-417c-a1b7-7b4b92945...@v7g2000yqh.googlegroups.com> > > Content-Type: text/plain; charset=ISO-8859-1 > > > On Feb 8, 6:49?pm, Corey Haines <coreyhai...@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...@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...@rubyforge.orghttp://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 rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users