Testing Ruby with RSpec: The Complete Guide [Video]

More Information
Learn
  • Utilize test-driven development principles to design and implement clean test specs in Ruby
  • Reduce dependencies in your test suite by mocking objects with class and instance doubles
About

This course offers a comprehensive overview of the RSpec testing library for the Ruby programming library. RSpec is the most popular Ruby Gem of all time, with over 300 million downloads to date. If you're new to the topic, testing is the practice of writing code that confirms that other code works as expected. Tests control for regressions, which are changes to the code that break the program.

The benefits of testing extend beyond the codebase. Adopting a test-driven approach will also make you a better developer. Tests force you to think critically about a program and its features: classes, objects, methods and more.

Testing Ruby with RSpec: The Complete Guide begins with the essentials and proceeds to more complex topics, including:

• Installation

• Project initialization

• Test-Driven Development (TDD)

• let variables

• before and after hooks

• Subjects

• Shared examples

• Shared context

• Built-in matchers

• Mocks and doubles

• Instance doubles

• Class doubles

At the completion of this course, you'll have acquired hands-on Ruby testing experience with this awesome RSpec library

Features
  • Master the syntax and structure of RSpec, the most popular Ruby Gem for testing
  • Explore the wide collection of RSpec matches available to test your code
Course Length 7 hours 30 minutes
ISBN 9781839219474
Date Of Publication 8 Aug 2019

Authors

Boris Paskhaver

Boris Paskhaver - Software Engineer - NYC-based web developer with experience building apps in React / Redux and Ruby on Rails. Raised in New Jersey, he graduated from the Stern School of Business at New York University in 2013 with a double major in Business Economics and Marketing. Since graduation, his work has taken him in a wide variety of directions -- he spent a year in marketing, then financial services, and now the tech industry. He has worked everywhere from a 50-person digital agency to an international tech powerhouse with thousands of employees. He always had a love of learning but have struggled with the traditional resources available for education. He used that as inspiration for my work here. His goal is to create comprehensive courses that break down the complex details into small, digestible pieces.