All Courses

Testing Ruby with RSpec: The Complete Guide

Testing Ruby with RSpec: The Complete Guide

Master the art of test-driven development (TDD) in Ruby using the RSpec Gem. No previous testing experience needed!

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 wide collection of RSpec matches available to test your code

Requirements

  • Intermediate knowledge of the Ruby programming language (classes, objects, data structures, etc)
  • The modern version of Ruby (>2.4)

Description

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:

  • 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

Thanks for checking out the course!

Who this course is for:

  • Intermediate Ruby developers interested in upgrading their skillset
  • Programmers who want to explore the fundamentals of testing and TDD
  • Content From: https://www.udemy.com/course/testing-ruby-with-rspec/
  • Last updated 1/2020

Testing Ruby with RSpec: The Complete Guide

Categories

Advertisement