Description
Course info
Rating
(54)
Level
Beginner
Updated
Dec 30, 2015
Duration
1h 46m
Description

In this course, we will be testing a simple command line card game using RSpec. We'll cover the core three libraries: the first module covers the core syntax and command line runner core, the second the expectation library for expressing rich assertions about your code, and the third covers mocks, a powerful tool for specifying collaborations between objects and getting useful design feedback. The final module places RSpec in the wider Ruby ecosystem, looking at the major RSpec versions and common patterns you'll encounter in the wild. In addition to covering the technical aspects of using RSpec, we'll also cover best practices for using them so you get the most out of your test suite: different types of tests, what kinds of things to test, when different styles are appropriate. This is applied in numerous worked examples.

About the author
About the author

Xavier has been on the startup scene for nearly a decade, and is prolific in the open-source community. He is on the RSpec core team and is Rails contributor, and has over 80 projects on Github.

More from the author
Learn by Building Redis with Ruby
Intermediate
1h 45m
Apr 9, 2014
Your Database Is Your Friend
Intermediate
1h 58m
Oct 3, 2013