A RESTful Rails API in rails --api mode using TDD with RSpec.
In addition to RSpec, the following gems are used:
factory_girl_rails
- A fixtures replacement with a more straightforward syntax.shoulda_matchers
- Provides RSpec with additional matchers.database_cleaner
- Cleans our test database to ensure a clean state in each test suite.faker
- A library for generating fake data.
Created by applying the following tutorial:
Part 1: https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-one