Using the double would be more efficient.  You should just need to add an id attribute after your change: double('User', email: 'user@spree.com', spree_api_key: 'fake', id: 1)