Table of contents

Patterns & Style Guides

Which gem to use

Testing a Ruby project

  • Projects should use RSpec
  • Projects must use govuk_test for test dependencies

Some projects use MiniTest. If you’re in the position, you should convert these tests into RSpec tests, but never mix RSpec and MiniTest in projects.

Linting Ruby code

See Lint your Ruby code with govuk-lint for more instructions.

Background processing

Using RabbitMQ

This page was last reviewed on 10 July 2019. It needs to be reviewed again on 10 July 2020 by the page owner #govuk-developers .
This page was set to be reviewed before 10 July 2020 by the page owner #govuk-developers. This might mean the content is out of date.