We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9b85de commit f111da3Copy full SHA for f111da3
spec/factories/better_together/messages.rb
@@ -7,5 +7,11 @@
7
content { Faker::Lorem.paragraph }
8
association :sender, factory: :person
9
association :conversation
10
+
11
+ after(:create) do |message|
12
+ BetterTogether::NewMessageNotifier.with(record: message,
13
+ conversation_id: message.conversation_id)
14
+ .deliver(message.conversation.participants)
15
+ end
16
end
17
0 commit comments