What you’ll learn: Testing Ruby with RSpec: The Complete Guide
Utilize test-driven development principles to design and implement clean test specs in Ruby
Master the syntax and structure of RSpec, the most popular Ruby Gem for testing
Reduce dependencies in your test suite by mocking objects with class and instance doubles
Explore the complete collection of RSpec matches available to test your code
Intermediate knowledge of the Ruby programming language (classes, objects, data structures, etc.)
The modern version of Ruby (>2.4)
A text editor (VSCode is recommended)
Welcome to Testing Ruby with RSpec: The Complete Guide!
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 outside of the codebase. Adopting a test-driven approach will also make you a better developer. Tests force you to think critically about the program and its features: the classes, the objects, the methods, and more.
Testing Ruby with RSpec begins with the essentials and proceeds to more complex topics, including:
- Project Initialization
- Test-Driven Development (TDD)
- let variables
- before and after hooks
- Shared Examples
- Shared Context
- Built-in Matchers
- Mocks and Doubles
- Instance Doubles
- Class Doubles
As a software engineer and consultant who’s worked with Ruby for several years, I’m excited to introduce you to the excellent RSpec library, its elegant syntax, and all of its fun quirks.
Thanks for checking out the course!
- Intermediate Ruby developers interested in upgrading their skillset
- Programmers who want to explore the fundamentals of testing and TDD
Hi there! I’m a New York City-based software engineer, author, and consultant who’s been teaching on Udemy since 2016.
There was no formal computer science education for me; I discovered coding entirely by accident. A small work interest quickly blossomed into a passionate weekend hobby. Eventually, I left my former role to complete App Academy, a rigorous full-stack web development Bootcamp in NYC. The rest is history.
I’ve always been fascinated by the intersection of technology and education, especially since I’ve struggled with many of the traditional resources people use to learn how to program. My goal as an instructor is to create comprehensive step-by-step courses that break down the intricate details into small, digestible pieces. I like to build the kind of material that I would have loved to have when I started.
I’m passionate about teaching and would love to help you discover what code can do for you. See you on a course soon!