Using RSpec in Rails generators
In your Gemfile string with Rspec gem(gem 'rspec-rails'
) should be placed in development group or outside of group at all(so, be loaded for development environment), if you want RSpec files to be generated instead of Test::Unit files when you are using rails generators for models, controllers etc.
Written by Artur
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#