Setup Rspec
1 install following Gems group :development, :test do # Use for test application gem 'rspec-rails', '~> 5.0.2' # Use for fixtures gem 'factory_bot_rails', '~> 5.2.0' # For create fake data gem 'faker', '~> 2.19.0' # use assigns in controller rspec gem 'rails-controller-testing' end bundle install rails generate rspec:install bundle exec rspec 2 Format Spec output on console add below line in spec/.rspec file (create new file .rspec) --format documentation 3 Modal Test cases ...