Skip to content

Writing Tests

Peeyush Goyal edited this page Sep 2, 2021 · 6 revisions

Writing Tests in Rails

Testing all worst case possibilities is good before we are staging to Production.

We have used rspec-rails, factory_bot_rails and faker to setup our basic tests.

For running integration tests use these commands: sudo service postgresql start rails db:reset RAILS_ENV=test bundle exec rspec

Clone this wiki locally