Rails RSpec

rspec-rails brings the RSpec testing framework to Ruby on Rails as a drop-in alternative to its default testing framework, Minitest.

In RSpec, tests are not just scripts that verify your application code. They’re also specifications (or specs, for short): detailed explanations of how the application is supposed to behave, expressed in plain English.
rspec rspec-rails testing TDD 90 1



Jun 16, 2020

Copy and paste this code into your terminal

DISCLAIMER: You should always review templates before running them. By running the template, you are agreeing to the terms of use.

The contents of this script as show. Any updates will be reflected in the below code and the snippet.

gem "rspec-rails" , group: [:development, :test]
run "bundle install"
generate "rspec:install"
run ("bundle binstubs rspec-core") if yes?("Generate a bin/rspec binstub? [yes|no]")

A place where you can thank the author, post problems, give constructive feedback, etc. Be nice!