Starting TDD in Ruby On Rails : RSpec

Steps:

In gemfile add following

group :development, :test do
  gem 'rspec-rails', '~>3.0'
  gem 'shoulda-matchers', require: false
  gem 'factory_girl_rails'
  gem 'faker'
end

Invoke Bundler to install required gems

$ bundle install

Confilgure .rspec file

--color
--require spec_helper
--format doc

–color

One thought on “Starting TDD in Ruby On Rails : RSpec

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s