- Course
RSpec 1
Learn RSpec from the basics through advanced tools.
- Course
RSpec 1
Learn RSpec from the basics through advanced tools.
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
What you'll learn
In the Basics module, learn how to install and configure RSpec. We'll walk through a simple project. Then we'll install RSpec in a Rails application and start writing examples for a simple model. The RSpec Mocks and Models module continues the project from part 1 but focuses on writing examples for ActiveRecord models. During the process you'll also learn about parsing XML with Hpricot! The Controllers and Tools module shows how to write behavior examples for Rails Controllers, Views, and Helpers. It finishes the application started at the beginning of this series.