Hi all, I''ve been writing apps and using retrospectively written tests with Test::Unit. I want to get into TTD with rspec but all of the resources I''ve found are either quite vague or out of date. Can anyone point me to a good resource to get me started with TTD/rspec in a rails app? Something with some nice examples maybe, and something that tells you how to actually run the tests would be great. Thanks Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 5, 3:12 am, Matt Harrison <iwasinnamuk...-ja4MoDZtUtVl57MIdRCFDg@public.gmane.org> wrote:> Hi all, > > I''ve been writing apps and using retrospectively written tests with > Test::Unit. > > I want to get into TTD with rspec but all of the resources I''ve found > are either quite vague or out of date. > > Can anyone point me to a good resource to get me started with TTD/rspec > in a rails app?Not exactly what you asked, but you do realise that you can do TDD with Test::Unit (or any testing framework really). It''s a shift in mentality more than anything else. Some people like the language that rspec uses, others don''t but that''s slightly orthogonal to whether you''re TDD''ing or not Fred> > Something with some nice examples maybe, and something that tells you > how to actually run the tests would be great. > > Thanks > > Matt--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> you do realise that you can do TDD > with Test::Unit (or any testing framework really). It''s a shift in > mentality more than anything else.+1 to that. I love and use RSpec (I never _really_ learned Test::Unit). But if you already know Test::Unit then I''d recommend that you try TDD with Test::Unit. You can practice the workflow/mindset of writing a failing test, then coding to make it pass (and then refactoring) without having to learn new syntax at the same time. To actually answer your question: I think the best place to learn RSpec is the peepcode screencasts: https://peepcode.com/products/rspec-basics There are three of them. I couldn''t say which is best since I don''t know how much you know about RSpec, but if you can afford $27 then you should buy all three. HTH --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---