diff options
author | theoretick <me@lucascharles.me> | 2016-04-07 15:49:35 -0700 |
---|---|---|
committer | theoretick <me@lucascharles.me> | 2016-04-14 11:20:55 -0700 |
commit | 5bf47f14b962b0e676e399dddc238d7bf764304d (patch) | |
tree | 58ddd787b6ab4f7642737c3e4a59c894f030fc2f /spec/features/issues_spec.rb | |
parent | 9cd5e0fc48c408f96a06c0a2b81bc70dfea9d98d (diff) | |
download | gitlab-ce-5bf47f14b962b0e676e399dddc238d7bf764304d.tar.gz |
Do not include award emojis in issue view comment_count
Fixes Issue #14431
Diffstat (limited to 'spec/features/issues_spec.rb')
-rw-r--r-- | spec/features/issues_spec.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index 79000666ccc..1ce0024e93c 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -45,7 +45,7 @@ describe 'Issues', feature: true do project: project) end - it 'allows user to select unasigned', js: true do + it 'allows user to select unassigned', js: true do visit edit_namespace_project_issue_path(project.namespace, project, issue) expect(page).to have_content "Assignee #{@user.name}" @@ -64,6 +64,18 @@ describe 'Issues', feature: true do end end + describe 'Issue info' do + it 'excludes award_emoji from comment count' do + issue = create(:issue, author: @user, assignee: @user, project: project, title: 'foobar') + create(:upvote_note, noteable: issue) + + visit namespace_project_issues_path(project.namespace, project, assignee_id: @user.id) + + expect(page).to have_content 'foobar' + expect(page.all('.issue-no-comments').first.text).to eq "0" + end + end + describe 'Filter issue' do before do ['foobar', 'barbaz', 'gitlab'].each do |title| @@ -187,7 +199,7 @@ describe 'Issues', feature: true do describe 'update assignee from issue#show' do let(:issue) { create(:issue, project: project, author: @user, assignee: @user) } - context 'by autorized user' do + context 'by authorized user' do it 'allows user to select unassigned', js: true do visit namespace_project_issue_path(project.namespace, project, issue) |