This change would not be necessary after `double(name, stubs)` is fixed in rspec/rspec-mocks#306