- Installing and configuring RSpec
- Writing and running examples
- Defining expectations using matchers
- Using helper methods, before/after hooks, and shared examples
- Creating test doubles using mocks and stubs
- Testing Ruby on Rails with RSpec
- Putting test-driven development into practice
Skill Level Intermediate
- [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.
1. Introducing RSpec
3. First Steps and Concepts
4. Working with Expectations
5. Testing Efficiently
6. Test Doubles
8. RSpec with Ruby on Rails
9. Test-Driven Development (TDD)
10. Testing Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.