Demonstrates a production-ready RSpec configuration for a Rails application.
- DatabaseCleaner strategy (transaction vs truncation for JS tests)
- FactoryBot integration with create, build, build_stubbed
- Shoulda Matchers for model and controller validations
- Shared contexts and shared examples
- Timecop for deterministic time-dependent specs
bundle install bundle exec rspec bundle exec rspec spec/services/ bundle exec rspec spec/models/user_spec.rb COVERAGE=true bundle exec rspec