diff --git a/README.md b/README.md index b46d175..6a4098c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_809 TILs and counting..._ +_810 TILs and counting..._ --- @@ -604,6 +604,7 @@ _809 TILs and counting..._ ### Ruby +- [A Shorthand For Rerunning Failed Tests With RSpec](ruby/a-shorthand-for-rerunning-failed-tests-with-rspec.md) - [Are They All True?](ruby/are-they-all-true.md) - [Assoc For Hashes](ruby/assoc-for-hashes.md) - [Block Comments](ruby/block-comments.md) diff --git a/ruby/a-shorthand-for-rerunning-failed-tests-with-rspec.md b/ruby/a-shorthand-for-rerunning-failed-tests-with-rspec.md new file mode 100644 index 0000000..6a12eca --- /dev/null +++ b/ruby/a-shorthand-for-rerunning-failed-tests-with-rspec.md @@ -0,0 +1,8 @@ +# A Shorthand For Rerunning Failed Tests With RSpec + +After running a group of tests -- whether it is the entire suite or just the +tests in a file -- you may find that you have a few failures. Often the goal is +to focus in on these failures and get back to a green test suite. Rather than +rerunning everything each time you make a change, you can instruct `rspec` to +just rerun the tests that failed. This can be done with the `--only-failures` +flag or `--on` flag for short.