Create test object factories using the Factory Girl Rails gem so that our RSpec tests can have test data to work with.
In this guide we will refactor our application to use the more efficient build_stubbed FactoryGirl method instead of the create method.
In this lesson we will walk through how to build specs for and then test validations to ensure data integrity.
In this guide we will walk through the process of creating RSpec tests for and then implementing the ability to create records in the database.
In this follow up guide we will walk through how to refactor the create action in our Ruby on Rails application to conform to Rails best practices.
In this guide we'll implement RSpec tests to ensure that the application renders the appropriate error message when the record is not created in the database.
In this guide we will work through adding additional data validations to our ActiveRecord models to ensure that the API will only accept valid requests.
devCamp does not support ancient browsers.
Install a modern version for best experience.