Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
RSpec instead of Test::Unit for new Rails projects
# at command line:
rails new MYAPP -T # The -T option tells rails not to include Test::Unit
# in Gemfile:
gem 'rspec-rails'
# in config/initializers/generator.rb
Rails.application.config.generators do |g|
g.test_framework = :rspec
# at command line:
bundle install
rails g rspec:install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment