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

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2016-05-06 22:27:07 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2016-06-26 07:20:59 +0300
commit4fb34139b0b2fc5ec6556a42868f596de35bbd94 (patch)
tree24a71b3138bc857db6b70f422ae180d922a43e41 /spec/workers
parentebfb0aa884dbcfbd09cc6ec32271a583dd452f00 (diff)
cleanup notifications and fix tests
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/notify_local_users_spec.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/workers/notify_local_users_spec.rb b/spec/workers/notify_local_users_spec.rb
deleted file mode 100644
index f49383e46..000000000
--- a/spec/workers/notify_local_users_spec.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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::NotifyLocalUsers do
- describe '#perfom' do
- it 'should call Notification.notify for each participant user' do
- post = double(id: 1234, author: double(diaspora_handle: "foo@bar"))
- klass_name = double(constantize: double(find_by_id: post))
- person = double(id: 4321)
- allow(Person).to receive(:find_by_id).and_return(person)
- expect(Notification).to receive(:notify).with(instance_of(User), post, person).twice
-
- Workers::NotifyLocalUsers.new.perform([alice.id, eve.id], klass_name, post.id, person.id)
- end
- end
-end