I have test-unit
installed and rspec
installed (along with -core
, -expectations
, -mocks
and -rails
Create your new rails application as:
rails new -T
Or remove your test
directory from your existing application:
rm -rf test/
Make an entry in your Gemfile:
gem 'rspec-rails'
From the command line install the gem
$ bundle install
From the command line install rspec into your application:
$ rails g rspec:install
Now your rails application uses RSpec instead of test-unit.