seattlerb/minitest — pull request #136 by peterhellberg (2012-06-19 13:24:24+00:00)
Title: Stubs now yield self.

I was thinking about how to make the stubbing in minitest a bit nicer, and figured that it would be nice if the stub method would `yield self` instead of just `yield`

Do you see any issues with this?

### Usage example:
```ruby
[1,2,3].stub(:count, 1337) do |a|
a.count.must_equal 1337
end
```

(All the tests pass, and I’ve added a simple test for the new functionality)