Update notification body
This commit is contained in:
@@ -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,7 +1,7 @@
|
||||
class Notifier::Commented < Notifier
|
||||
private
|
||||
def body
|
||||
"#{creator.name} commented on: #{bubble.title}"
|
||||
"commented on: #{bubble.title}"
|
||||
end
|
||||
|
||||
def recipients
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user