Welcome to mirror list, hosted at ThFree Co, Russian Federation.

delete_account_spec.rb « workers « spec - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c6fbff89206a09152074d2db85da1f6087b0d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

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