HI All, I would like to perform my spec runs without the db:test:prepare rake prereq. It would be nice if I could alter spec to prereq db:test:purge only. Could you give me some advice/urls/pointers on how best to go about this? Thanks, Peter Fitzgibbons (847) 859-9550 Email: peter.fitzgibbons at gmail.com <mailto:peter.fitzgibbons at gmail.com> IM GTalk: peter.fitzgibbons IM AOL: peter.fitzgibbons at gmail.com <mailto:peter.fitzgibbons at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100720/39f09cbb/attachment.html>
On Jul 20, 2010, at 4:18 PM, Peter Fitzgibbons wrote:> HI All, > > I would like to perform my spec runs without the db:test:prepare rake prereq. > It would be nice if I could alter spec to prereq db:test:purge only. > > Could you give me some advice/urls/pointers on how best to go about this?Rake::Task[:spec].clear_prerequisites task :spec => ["db:test:purge"] Cheers, David
How ''bout for rspec2? BTW: Where should these magic lines be placed? Inside a ./config/initializers/my_init.rb ?? Peter Fitzgibbons (847) 859-9550 Email: peter.fitzgibbons at gmail.com IM GTalk: peter.fitzgibbons IM AOL: peter.fitzgibbons at gmail.com On Tue, Jul 20, 2010 at 6:40 PM, David Chelimsky <dchelimsky at gmail.com>wrote:> On Jul 20, 2010, at 4:18 PM, Peter Fitzgibbons wrote: > > > HI All, > > > > I would like to perform my spec runs without the db:test:prepare rake > prereq. > > It would be nice if I could alter spec to prereq db:test:purge only. > > > > Could you give me some advice/urls/pointers on how best to go about this? > > Rake::Task[:spec].clear_prerequisites > task :spec => ["db:test:purge"] > > Cheers, > David > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100721/8a6bd941/attachment-0001.html>
On Jul 21, 2010, at 3:32 PM, Peter Fitzgibbons wrote:> On Tue, Jul 20, 2010 at 6:40 PM, David Chelimsky <dchelimsky at gmail.com> wrote: > On Jul 20, 2010, at 4:18 PM, Peter Fitzgibbons wrote: > > > HI All, > > > > I would like to perform my spec runs without the db:test:prepare rake prereq. > > It would be nice if I could alter spec to prereq db:test:purge only. > > > > Could you give me some advice/urls/pointers on how best to go about this? > > Rake::Task[:spec].clear_prerequisites > task :spec => ["db:test:purge"]> How ''bout for rspec2?Should work the same way.> > BTW: Where should these magic lines be placed? Inside a ./config/initializers/my_init.rb ??In any .rake file in lib/tasks (those should get loaded after the ones in the gems) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100721/e620e2ba/attachment.html>
On Jul 21, 2010, at 4:17 PM, David Chelimsky wrote:> On Jul 21, 2010, at 3:32 PM, Peter Fitzgibbons wrote: >> On Tue, Jul 20, 2010 at 6:40 PM, David Chelimsky <dchelimsky at gmail.com> wrote: >> On Jul 20, 2010, at 4:18 PM, Peter Fitzgibbons wrote: >> >> > HI All, >> > >> > I would like to perform my spec runs without the db:test:prepare rake prereq. >> > It would be nice if I could alter spec to prereq db:test:purge only. >> > >> > Could you give me some advice/urls/pointers on how best to go about this? >> >> Rake::Task[:spec].clear_prerequisites >> task :spec => ["db:test:purge"] > >> How ''bout for rspec2? > > Should work the same way. > >> >> BTW: Where should these magic lines be placed? Inside a ./config/initializers/my_init.rb ?? > > In any .rake file in lib/tasks (those should get loaded after the ones in the gems)Also - there''s no magic about these lines. Standard Ruby/rake - no metaprogramming, nothing mysterious. Just gotta know how Rake works. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100721/c05fb738/attachment.html>