RSpec Core
rspec-core provides the structure for RSpec code examples:
describe Account do
it "has a balance of zero when first opened" do
# example code goes here - for more on the
# code inside the examples, see rspec-expectations
# and rspec-mocks
end
endIssues
This documentation is open source, and a work in progress. If you find it incomplete or confusing, please submit an issue, or, better yet, a pull request.
In this section
- 3.8.2 / 2019-06-29
- Example groupssection
- Command linesection
- Hookssection
- Subjectsection
- Helper methodssection
- Metadatasection
- Filteringsection
- Configurationsection
- Expectation framework integrationsection
- Mock framework integrationsection
- Formatterssection
- Spec filessection
- Use rspec-core without rspec-mocks or rspec-expectations
- Pending and skipped examplessection
- Running specs multiple times with different runner options in the same process
Source: features/README.md at v3.8.2, RSpec Core (MIT license).