blob: e57292048cf214af007eb5ddf7e9ef9a2d7d5861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 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::Mail::CsrfTokenFail do
describe "#perfom" do
it "should call .deliver on the notifier object" do
user = alice
mail_double = double
expect(mail_double).to receive(:deliver_now)
expect(Notifier).to receive(:csrf_token_fail).with(user.id).and_return(mail_double)
Workers::Mail::CsrfTokenFail.new.perform(user.id)
end
end
end
|