You could remove the assignment and this return statement.

```ruby
def stubbed_configuration(return_value)
  double('ProjectConfiguration', :templates => return_value)
end
```