Use double instead of mock (deprecated in latest version of rspec)