diaspora/spec/workers/delete_account_spec.rb

17 lines
515 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe Workers::DeleteAccount do
describe '#perform' do
it 'performs the account deletion' do
account_deletion = double
allow(AccountDeletion).to receive(:find).and_return(account_deletion)
expect(account_deletion).to receive(:perform!)
Workers::DeleteAccount.new.perform(1)
end
end
end