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:
Toks
2014-04-30 21:18:18 -04:00
parent 76d1f0a66b
commit 055d0eecd3
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ private
user.feedback.create(
: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
)
end

View File

@@ -30,7 +30,7 @@ class UserTest < ActiveSupport::TestCase
@user.promote_to!(User::Levels::GOLD)
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
should "create a dmail" do