Update notification body

This commit is contained in:
Kevin McConnell
2025-01-10 12:46:00 +00:00
parent 0c152b5439
commit dc53a39b93
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
class Notifier::Assigned < Notifier
private
def body
"#{creator.name} assigned you: #{bubble.title}"
"assigned you: #{bubble.title}"
end
def recipients
+1 -1
View File
@@ -1,7 +1,7 @@
class Notifier::Commented < Notifier
private
def body
"#{creator.name} commented on: #{bubble.title}"
"commented on: #{bubble.title}"
end
def recipients
+1 -1
View File
@@ -1,7 +1,7 @@
class Notifier::Created < Notifier
private
def body
"#{creator.name} created a new item: #{bubble.title}"
"created: #{bubble.title}"
end
def recipients
+1 -1
View File
@@ -20,6 +20,6 @@ class Notifier::AssignedTest < ActiveSupport::TestCase
test "generate populates the notification details" do
Notifier.for(events(:logo_assignment_km)).generate
assert_equal "David assigned you: The logo isn't big enough", Notification.last.body
assert_equal "assigned you: The logo isn't big enough", Notification.last.body
end
end
+1 -1
View File
@@ -14,6 +14,6 @@ class Notifier::CreatedTest < ActiveSupport::TestCase
test "generate populates the notification details" do
Notifier.for(events(:logo_created)).generate
assert_equal "David created a new item: The logo isn't big enough", Notification.last.body
assert_equal "created: The logo isn't big enough", Notification.last.body
end
end