Testing rake runs the test suite To test production with precompiled assets: export SECRET_KEY_BASE=`rake secret` alias test-prod='rake assets:clobber && RAILS_ENV=production bin/rake assets:precompile \ && rails s -e production'