- RSpec Tutorial
- RSpec - Home
- RSpec - Introduction
- RSpec - Basic Syntax
- RSpec - Writing Specs
- RSpec - Matchers
- RSpec - Test Doubles
- RSpec - Stubs
- RSpec - Hooks
- RSpec - Tags
- RSpec - Subjects
- RSpec - Helpers
- RSpec - Metadata
- RSpec - Filtering
- RSpec - Expectations
- RSpec Resources
- RSpec - Quick Guide
- RSpec - Useful Resources
- RSpec - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
RSpec Tutorial
RSpec is a unit test framework for the Ruby programming language. RSpec is different than traditional xUnit frameworks like JUnit because RSpec is a Behavior driven development tool. What this means is that, tests written in RSpec focus on the "behavior" of an application being tested. RSpec does not put emphasis on, how the application works but instead on how it behaves, in other words, what the application actually does. This tutorial will show you, how to use RSpec to test your code when building applications with Ruby.
Audience
This tutorial is for beginners who want to learn how to write better code in Ruby. After finishing this tutorial, you will be able to incorporate RSpec tests into your daily coding practices.
Prerequisites
In order to benefit from reading this tutorial, you should have some experience with programming, specifically with Ruby.