Change mock to double.

rspec 2.14 warns about using mock.

[finishes #53826153]