Add shoulda-matchers to the Gemfile.
Add validations and tests for the repository model.
Add controller actions and controller tests for the repositories.