Remove redundant promoter name from user feedback
Feedbacks already keep track of who created them so it doesn't need to be in the body too
This commit is contained in:
@@ -48,7 +48,7 @@ private
|
|||||||
|
|
||||||
user.feedback.create(
|
user.feedback.create(
|
||||||
:category => "neutral",
|
:category => "neutral",
|
||||||
:body => "#{body_prefix} by #{promoter.name} from #{user.level_string_was} to #{user.level_string}",
|
:body => "#{body_prefix} from #{user.level_string_was} to #{user.level_string}",
|
||||||
:disable_dmail_notification => true
|
:disable_dmail_notification => true
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class UserTest < ActiveSupport::TestCase
|
|||||||
@user.promote_to!(User::Levels::GOLD)
|
@user.promote_to!(User::Levels::GOLD)
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_equal("Promoted by #{CurrentUser.user.name} from Member to Gold", @user.feedback.last.body)
|
assert_equal("Promoted from Member to Gold", @user.feedback.last.body)
|
||||||
end
|
end
|
||||||
|
|
||||||
should "create a dmail" do
|
should "create a dmail" do
|
||||||
|
|||||||
Reference in New Issue
Block a user