On Tue, Aug 2, 2011 at 4:41 PM, Piter Fcbk <piter.f...@gmail.com> wrote: > I have a task that runs frequently in order to get/import data from another > system. > Because of this I wanted to know which is the best way to test tasks in > order to create the tests needed. > > Thanks in advance. >
Assuming you are asking about rake tasks... I typically extract the body of the task into a method and then test that method. This typically leaves the rake task very thin and I do not worry about testing the task itself. Best, Michael Guterl _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users