blog.robotex.de

rspec: using rspec in your rails projects

Install the rspec gem:

$> gem install rspec-rails

Add rspec to your Rails.root/Gemfile:

group :test, :development do
  gem "rspec-rails"
end

Install your bundle:

$> bundle install

Generate the basic rspec files:

$> rails g rspec:install

Back