Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rspec-setup

Demonstrates a production-ready RSpec configuration for a Rails application.

What this shows

  • 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

How to run

bundle install bundle exec rspec bundle exec rspec spec/services/ bundle exec rspec spec/models/user_spec.rb COVERAGE=true bundle exec rspec

About

RSpec starter with factories, shared examples, custom matchers, and coverage

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages