From the course: Ruby: Testing with RSpec

Welcome - Ruby Tutorial

From the course: Ruby: Testing with RSpec

Start my 1-month free trial

Welcome

- [Voiceover] Welcome to Rspec Testing Framework. My name is Kevin Skoglund. In this course, we're going to learn to work with RSpec, the popular framework for testing Ruby code. We will learn how to use RSpec for testing pure Ruby applications and then how to use RSpec to test the different parts of Ruby on RAILS web applications. RSpec is written in Ruby, so this course is intended for developers who already know how to write code in Ruby and now want to learn how to test that code. We will learn the basic syntax of RSpec and see how to write and run tests against code. We will spend a lot of time exploring the many matchers that RSpec provides that help us to write testing samples for a variety of code situations. We will discover techniques to help make your test more efficient by helping to organize test examples and, therefore, to write less code. We will use test doubles as temporary stand-ins with the power to mimic Ruby objects and behaviors. We will discuss the theory behind test-driven development and demonstrate how it works in practice. Let's get started learning how to write software tests with RSpec.

Contents