diff options
author | cmrd Senya <senya@riseup.net> | 2016-08-22 15:12:35 +0300 |
---|---|---|
committer | cmrd Senya <senya@riseup.net> | 2016-11-28 16:56:56 +0300 |
commit | 33ad411bbd0d48652d161a60627657f75d467292 (patch) | |
tree | fee7d5c6e0ae71f251e83452bf89d12aa1bed725 /spec/workers | |
parent | ef5751b808f7aa47b1ad10790e1c30894ae67b43 (diff) |
Mentions in comments backend changes
Diffstat (limited to 'spec/workers')
-rw-r--r-- | spec/workers/mail/mentioned_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/workers/mail/mentioned_spec.rb b/spec/workers/mail/mentioned_spec.rb index 5d8d76cd7..cc06f5d58 100644 --- a/spec/workers/mail/mentioned_spec.rb +++ b/spec/workers/mail/mentioned_spec.rb @@ -7,11 +7,12 @@ describe Workers::Mail::Mentioned do it "should call .deliver on the notifier object" do user = alice sm = FactoryGirl.build(:status_message) - m = Mention.new(:person => user.person, :post=> sm) + m = Mention.new(person: user.person, mentions_container: sm) mail_double = double() expect(mail_double).to receive(:deliver_now) - expect(Notifier).to receive(:send_notification).with("mentioned", user.id, sm.author.id, m.id).and_return(mail_double) + expect(Notifier).to receive(:send_notification) + .with("mentioned", user.id, sm.author.id, m.id).and_return(mail_double) Workers::Mail::Mentioned.new.perform(user.id, sm.author.id, m.id) end |