From: Mike Bethany Date: 2011-07-19T23:01:37+09:00 Subject: Re: Best practice for writting test for my gem --000e0cd4b300d419c304a86c8d35 Content-Type: text/plain; charset=ISO-8859-1 Well, first you should understand that while it's not uncommon to have to write tests for legacy code with TDD/BDD you normally write your tests first then you write your code to make the tests pass. I wrote up a few links to Cucumber and RSpec resources, and TDD/BDD in general, you can find here: http://mikbe.tk/2011/03/05/learning-cucumber-rspec/ On Tue, Jul 19, 2011 at 7:09 AM, Gregory Ma wrote: > Hi, > > I made a gem called 'bump'. Here is the source code: > https://github.com/gregorym/bump > > I want to start writting test but I don't know where to start, I never > wrote tests before. > > Basically my gem looks for a gemfile and upgrade the version of the gem. > > Where and how do I start? > > Greg > > -- > Posted via http://www.ruby-forum.com/. > > --000e0cd4b300d419c304a86c8d35--