Re: [rspec-users] Test case for file import

2007-11-14 Thread aslak hellesoy
On 11/14/07, Karni Karni <[EMAIL PROTECTED]> wrote: > Karni Karni wrote: > > aslak hellesoy wrote: > > > > Could u pls give any URL form u written this code? > > Thanks for ur reply. But in my case the total code is in the controller. It shouldn't be. Put business logic in the model. http://weblo

Re: [rspec-users] Test case for file import

2007-11-14 Thread Karni Karni
Karni Karni wrote: > aslak hellesoy wrote: > > Could u pls give any URL form u written this code? Thanks for ur reply. But in my case the total code is in the controller. I' submitting the from to a specific action with CSV file. Hoew can I pass my CSV file to that specific action -- Posted vi

Re: [rspec-users] Test case for file import

2007-11-14 Thread Karni Karni
aslak hellesoy wrote: Could u pls give any URL form u written this code? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Test case for file import

2007-11-13 Thread aslak hellesoy
look at the RDoc for should change... describe Task do fixtures :tasks # should put 2 tasks in the database it "should not import twice from CSV" do csv = File.dirname(__FILE__) + '/sample.csv' # It should have 4 new tasks lambda do Task.import_from_csv(csv) end.should chang

Re: [rspec-users] Test case for file import

2007-11-13 Thread Karni Karni
aslak hellesoy wrote: > On Nov 12, 2007 11:36 AM, KarniRevuri <[EMAIL PROTECTED]> wrote: >> typical windows file open controls." >> >> >> Please give me any ideas >> > > Is this related to the post that you replied to? > Your question is too vague. Can you be more specific about what you > need he

Re: [rspec-users] Test case for file import

2007-11-12 Thread aslak hellesoy
On Nov 12, 2007 11:36 AM, KarniRevuri <[EMAIL PROTECTED]> wrote: > > I want to write below specs > > specify "The system allows users to import a pre-formatted CSV file into > project." > specify "Each row in the spreadsheet is imported as one new Task." > specify "The import WILL NOT update ex

Re: [rspec-users] Test case for file import

2007-11-12 Thread KarniRevuri
I want to write below specs specify "The system allows users to import a pre-formatted CSV file into project." specify "Each row in the spreadsheet is imported as one new Task." specify "The import WILL NOT update existing tasks." specify "If the import file has any records that fail due t

Re: [rspec-users] Test case for file import

2007-11-06 Thread Jim Lindley
> > Can you show some of your code that needs to be tested? > > Actually, we'd hope that the code doesn't exist yet. This is Behaviour > DRIVEN Development, after all. >  Old habits, my apologies. ___ rspec-users mailing list rspec-users@rubyforge.org ht

Re: [rspec-users] Test case for file import

2007-11-06 Thread David Chelimsky
On Nov 6, 2007 6:51 AM, Jim Lindley <[EMAIL PROTECTED]> wrote: > > > > I need to write the testcase for fileimport. > > > > Can you show some of your code that needs to be tested? Actually, we'd hope that the code doesn't exist yet. This is Behaviour DRIVEN Development, after all. Can you tell us

Re: [rspec-users] Test case for file import

2007-11-06 Thread Jim Lindley
> > I need to write the testcase for fileimport. > Can you show some of your code that needs to be tested? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Test case for file import

2007-11-06 Thread Karni Karni
Hi Friends, I need to write the testcase for fileimport. Pls give me any idea -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users