Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

RSpec instead of Test::Unit for new Rails projects

View gist:4145214
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# 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
end
 
# 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
Something went wrong with that request. Please try again.