rspec/rspec-mocks — pull request #163 by stevenharman (2012-07-12 20:48:09+00:00)
Title: Provide a default value (Mock.new) for stub_const.

Currently you are required to provide a value for the stubbed constant,
but there are times that I don't actually care what it is because I'm
just going to stub the usage of the constant anyhow. For example:

```ruby
stub_const('DeathStar', stub)
Starship.stub(:status) { :operational }
```

This allows you to

```ruby
stub_const('DeathStar')
Starship.stub(:status) { :operational }

# or
stub_const('DeathStar').stub(:status) { :operational }
```