Sam Saffron
Sam Saffron

Reputation: 131112

How do I get rspec / autotest going on a rails project?

What's the best practice for getting RSpec / Autotest going on a Rails project?

I googled some stuff but it feels like it may be out of date.

Upvotes: 1

Views: 338

Answers (1)

Paweł Gościcki
Paweł Gościcki

Reputation: 9594

It's fairly straightforward (for Rails3/Bundler):

Gemfile:

group :development, :test do
  gem 'rspec-rails'
  gem 'ZenTest'
  gem 'autotest-rails'
end

And then:

$ rails generate rspec:install
$ autotest

And you're set.

Upvotes: 3

Related Questions