Replace deprecated #stub and #mock with #double in specs

They are deprecated in RSpec 2.14.
https://github.com/rspec/rspec-mocks/commit/843a40f