diff options
author | Jack Davison <jack.davison@student.manchester.ac.uk> | 2016-07-11 19:53:07 +0100 |
---|---|---|
committer | Jack Davison <jack.davison@student.manchester.ac.uk> | 2016-08-17 21:25:39 +0100 |
commit | 6c1ed00afc98562e2c605aa3df313d26b3486da3 (patch) | |
tree | 5684cf9f2dfaa25179b56b2f924b416bc9ae9d5a /spec/helpers | |
parent | 1fc17a8a43a87af89358953364872d565d38b8e8 (diff) | |
download | gitlab-ce-6c1ed00afc98562e2c605aa3df313d26b3486da3.tar.gz |
Award tooltips refer to current user as "You"
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/issues_helper_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/issues_helper_spec.rb b/spec/helpers/issues_helper_spec.rb index e0e3554819c..67bac782591 100644 --- a/spec/helpers/issues_helper_spec.rb +++ b/spec/helpers/issues_helper_spec.rb @@ -69,8 +69,8 @@ describe IssuesHelper do expect(award_user_list(awards.first(9), nil)).to eq(awards.first(9).map { |a| a.user.name }.to_sentence) end - it "displays the current user's name as 'me'" do - expect(award_user_list(awards.first(1), awards[0].user)).to eq('me') + it "displays the current user's name as 'You'" do + expect(award_user_list(awards.first(1), awards[0].user)).to eq('You') end it "truncates lists of larger than 9 users" do @@ -79,12 +79,12 @@ describe IssuesHelper do it "displays the current user in front of 0-9 other users" do expect(award_user_list(awards, awards[0].user)). - to eq("me, " + awards[1..9].map { |a| a.user.name }.join(', ') + ", and 5 more.") + to eq("You, " + awards[1..9].map { |a| a.user.name }.join(', ') + ", and 5 more.") end it "displays the current user in front regardless of position in the list" do expect(award_user_list(awards, awards[12].user)). - to eq("me, " + awards[0..8].map { |a| a.user.name }.join(', ') + ", and 5 more.") + to eq("You, " + awards[0..8].map { |a| a.user.name }.join(', ') + ", and 5 more.") end end |