-
rails g rspec:install
-
FactoryBot Setup
RSpec.configure do |config|
config.include FactoryBot::Syntax::Methods
end
- Add the should matcher config that looks like below
- If you're working on a Rails app, simply place this at the bottom of spec/rails_helper.rb (or in a support file if you so choose):
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
end
- rails g annotate:install