Testing Ruby with RSpec: The Complete Guide [Video]

More Information
  • 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

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

  • 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