Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
command_line Replace "should" with "is expected to" in generated description (#2572) Oct 31, 2018
configuration squash! Add support for $XDG_CONFIG_HOME/rspec/options May 2, 2018
example_groups Fix minor typo (#2578) Nov 15, 2018
expectation_framework_integration minitest integration is still broken on jruby 9000 Feb 12, 2017
filtering Implement `filter_run_when_matching`. Mar 16, 2016
formatters Add force_color and no_color options Oct 7, 2016
helper_methods Tweak a few things about the threadsafe let solution from #1858. Apr 3, 2015
hooks Set the exit status to non-zero for `after(:context)` errors. Sep 1, 2016
mock_framework_integration `c.mock_framework = :foo` => `c.mock_with :foo` Apr 25, 2015
pending_and_skipped_examples No Error -> No error (#2417) Apr 20, 2017
spec_files Use code backticks in feature and scenario names. Apr 5, 2014
subject Replace "should" with "is expected to" in generated description (#2572) Oct 31, 2018
support Reduce JRuby flakyness by giving it more time to finish Jul 15, 2017
.nav Add fail_if_no_examples option Jul 28, 2016
README.md Use RSpec module on describe calls in docs. (#2571) Oct 13, 2018
clear_examples.feature Implement `filter_run_when_matching`. Mar 16, 2016
core_standalone.feature Skip specs with non-mri-compatible backtrace. Feb 9, 2015


rspec-core provides the structure for RSpec code examples:

RSpec.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


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.