Re: [rspec-users] Best way to test tasks

2011-08-02 Thread Justin Ko
On Tue, Aug 2, 2011 at 5:52 PM, Piter Fcbk wrote: > You are right, I'm talking about rake task. > So the idea is to make an Importer object, do the unit test for that object > and then the task just calls the methods of the objects right? > > Thanks a lot for the help, really appreciate it. > > >

Re: [rspec-users] Best way to test tasks

2011-08-02 Thread Piter Fcbk
You are right, I'm talking about rake task. So the idea is to make an Importer object, do the unit test for that object and then the task just calls the methods of the objects right? Thanks a lot for the help, really appreciate it. On Tue, Aug 2, 2011 at 6:31 PM, Pat Maddox wrote: > On Aug 2, 2

Re: [rspec-users] Best way to test tasks

2011-08-02 Thread Pat Maddox
On Aug 2, 2011, at 4:41 PM, Piter Fcbk 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. I write simple objects that

Re: [rspec-users] Best way to test tasks

2011-08-02 Thread Michael Guterl
On Tue, Aug 2, 2011 at 4:41 PM, Piter Fcbk 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