How can I spec out a rake task? How can I use rake in my spec''s? I want to fix this rake spec:autotest bug with --drb and --color. How can I get rake output? How would I get out of autotest? My initial thought is just to run the command in the spec. Scott
Grab the ZenTest gem and look at its tests for autotest. That should give you some direction I think. On 4/1/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > How can I spec out a rake task? > > How can I use rake in my spec''s? I want to fix this rake > spec:autotest bug with --drb and --color. How can I get rake output? > > How would I get out of autotest? My initial thought is just to run > the command in the spec. > > Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On 4/1/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > How can I spec out a rake task? >I haven''t tried it myself, but I would look at Rake''s own unit tests to see how they do it.> How can I use rake in my spec''s?Do you mean invoking a Rake task? Either by spawing a child rake process (not recommended since it''s slow) or by instantiating a task object directly and invoking it via Rake''s API.> I want to fix this rake > spec:autotest bug with --drb and --color. How can I get rake output? >I think you''d get better Rake questions on the Rake mailing list.> How would I get out of autotest? My initial thought is just to run > the command in the spec. >I don''t understand the question. Get out of? Aslak> Scott > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
On Apr 1, 2007, at 3:23 PM, aslak hellesoy wrote:> On 4/1/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> >> How can I spec out a rake task? >> > > I haven''t tried it myself, but I would look at Rake''s own unit tests > to see how they do it. > >> How can I use rake in my spec''s? > > Do you mean invoking a Rake task? Either by spawing a child rake > process (not recommended since it''s slow) or by instantiating a task > object directly and invoking it via Rake''s API. > >> I want to fix this rake >> spec:autotest bug with --drb and --color. How can I get rake output? >> > > I think you''d get better Rake questions on the Rake mailing list.> >> How would I get out of autotest? My initial thought is just to run >> the command in the spec. >>> I don''t understand the question. Get out of?Escape out of autotest. Usually with autotest you hit CTRL-C to run all of the tests (again). Hitting Control-C twice gets you back to the command line. This is actually a bug w/ rspec_autotest, because CTRL-C also shuts down rake. rspec_autotest is run through rake, so to re-run all of your specs (not just the failing ones), you will have to exit the application and run it again (even though autotest claims otherwise). Aslak, Thanks for the input on rake.
I''ve started, but didn''t see anything too striking. Couldn''t figure out how the test''s were actually running through autotest, although I only looked at it briefly. I''ll have another go of it in a few days, and post back if I find anything interesting or fix the bug. Scott On Apr 1, 2007, at 3:21 PM, David Chelimsky wrote:> Grab the ZenTest gem and look at its tests for autotest. That should > give you some direction I think. > > On 4/1/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote: >> >> How can I spec out a rake task? >> >> How can I use rake in my spec''s? I want to fix this rake >> spec:autotest bug with --drb and --color. How can I get rake output? >> >> How would I get out of autotest? My initial thought is just to run >> the command in the spec. >> >> Scott >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users