Fix RSpec deprecation

    DEPRECATION: mock is deprecated. Use double instead.