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
- rspec-core-2.6
- 2.6.4 / 2011-06-06
- Bundler
- Example groupssection
- Command linesection
- Pendingsection
- Hookssection
- Subjectsection
- Helper methodssection
- Metadatasection
- Filteringsection
- Configurationsection
- Expectation framework integrationsection
- Mock framework integrationsection
- Formatterssection
- Spec filessection
Source: features/README.md at v2.6.4, RSpec Core (MIT license).