seattlerb/minitest — pull request #131 by ordinaryzelig (2012-05-24 18:12:37+00:00)
Title: Add name filtering for spec descriptions.

I added some code to help with name filtering for specs. The `--name` CLI option used to only accept regular expressions. Now it can accept strings that match spec descriptions.

Example:

```ruby
# test.rb
describe 'suite' do
it 'only runs this spec' do
true.must_equal true
end
it 'should not run this' do
false.must_equal true
end
end
```

And in the command line:

```
$ ruby test.rb -n 'only runs this'
1 test, 0 failures
```