September 12, 2013

Essential tools for Rails test driven development

I would like to write article about test driven development (TDD). How cool it is and why you should use it.

But right now I cannot find right words. So I am going to present some essential tools which you should consider when you want to (and you should) practise Ruby on Rails TDD.

Must have gems

Very good to have gems


There is a lot of other gems which can help you with Rails TDD. But I use that ones mentioned above in every project. So this is how my TDD part of Gemfile looks like.

group :test, :development do
  gem 'rspec-rails'
  gem 'spork'
  gem 'factory_girl_rails'

group :test do
  gem 'capybara'
  gem 'launchy'
  gem 'shoulda-matchers'

p.s. if you are vim user then check rspec.vim for executing specs directly from vim

Hey there!

My name is Patrik Bóna and I am the only programmer at Memberful. This blog is kind of dead, but I just started my own Ruby on Rails screencast. Follow me on Twitter if you want to be notified about my newest videos.