Featured resource
2026 Tech Forecast
2026 Tech Forecast

Stay ahead of what’s next in tech with predictions from 1,500+ business leaders, insiders, and Pluralsight Authors.

Get these insights
  • Course

Testing Ruby 2 Applications with RSpec

Learn how to use the popular RSpec suite of libraries (core, expectations, and mocks) to test your Ruby application.

Beginner
1h 46m
(59)

Created by

Last Updated Jun 26, 2024

Course Thumbnail
  • Course

Testing Ruby 2 Applications with RSpec

Learn how to use the popular RSpec suite of libraries (core, expectations, and mocks) to test your Ruby application.

Beginner
1h 46m
(59)

Created by

Last Updated Jun 26, 2024

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 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.

Testing Ruby 2 Applications with RSpec
Beginner
1h 46m
(59)
Table of contents

Get started with Pluralsight