Last Updated: February 25, 2016
·
202
· shibailo

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.