A test framework for the Ruby language. A tool that can automatically check bugs according to the test code by writing the test code in RSpec and executing the test code in the terminal.
Gemfile
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
#↓ ↓ Description to be added this time ↓ ↓
gem 'rspec-rails', '~> 4.0.0'
end
Terminal
% bundle install
Terminal
% rails generate rspec:install
The following files are created by executing this command.
Terminal
.rspec
spec
spec/spec_helper.rb
spec/rails_helper.rb
Recommended Posts