API Documentation
The API documentation contains details about all public APIs supported by RSpec. We consider these the primary docs and will treat these APIs according to the policies of Semantic Versioning. We encourage you to use only public APIs as private APIs may change in any release without warning. If you have a use case not supported by the existing public APIs, please ask and we'll be glad to add an API for you or make an existing private API public.
RSpec is composed of multiple libraries, which are designed to work together, or can be used independently with other testing tools like Cucumber or Minitest. The parts of RSpec are:
- rspec-core: The spec runner, providing a rich command line program, flexible and customizable reporting, and an API to organize your code examples. Versions:
- rspec-expectations: Provides a readable API to express expected outcomes of a code example. Versions:
- rspec-mocks: Test double framework, providing multiple types of fake objects to allow you to tightly control the environment in which your specs run. Versions:
- rspec-rails: Supports using RSpec to test Ruby on Rails applications in place of Rails' built-in test framework. Versions: