This is a ruby kata exploring coupling & cohesion in a typical messy app.
- If you don't use asdf, ensure you have the right ruby installed (see .tool-versions).
- If you don't use direnv, ensure you have all the environment variables set (see .envrc).
- Run
bundle install
- Run
rake db:create db:migrate
- Run
rspec
Usage without variables is:
- Run
export SCHEMA=db/schema.rb
- Run
bundle install
- Run
rake db:create db:migrate
- Run
rspec
When in doubt do (or if you mess up the environment) use:
SCHEMA=db/schema.rb rake db:environment:set RAILS_ENV=development
SCHEMA=db/schema.rb rake db:drop db:create db:migrate