In this lesson, we're going to learn the basics of RSpec, a popular testing library for Ruby and Rails applications. Since many students have reached out to me about this topic, I felt it should be added to the curriculum.
In this lesson, we are going to create a sample user model for RSpec testing. This will give us a model to work with and build in some tests for behavior.
Now that we have our user model ready, we are going to create some tests for it in this lesson. Validations are helpful while learning about TDD/BDD practices since they're easy to understand and can be tested independently from other code.
In this lesson we're going to continue building out the validation tests for our User model using the RSpec testing framework in a Ruby on Rails application, using TDD principles to guide our development.
devCamp does not support ancient browsers.
Install a modern version for best experience.