It is TDD framework, which aims to make Test-Driven Development a more joyful and productive experience with tools that elevate the design and documentation aspects of TDD to first-class citizenship.
The code whose behavior we are specifying with RSpec.
An expression of how the subject code is expected to behave.
An executable example of how the subject code can be used and its expected behavior (expressed with expectations) in a given context.
A group of code examples.
A file that contains one or more example groups.
Today I’ll discuss about how to organize executable code examples in example groups in a number of different ways,
run arbitrary bits of code before and after each example, and
even share examples across groups.