summaryrefslogtreecommitdiff
path: root/spec/views/projects/issues/show.html.haml_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/projects/issues/show.html.haml_spec.rb')
-rw-r--r--spec/views/projects/issues/show.html.haml_spec.rb27
1 files changed, 1 insertions, 26 deletions
diff --git a/spec/views/projects/issues/show.html.haml_spec.rb b/spec/views/projects/issues/show.html.haml_spec.rb
index fb09840c8f4..60a541916e9 100644
--- a/spec/views/projects/issues/show.html.haml_spec.rb
+++ b/spec/views/projects/issues/show.html.haml_spec.rb
@@ -3,18 +3,7 @@
require 'spec_helper'
describe 'projects/issues/show' do
- let(:project) { create(:project, :repository) }
- let(:issue) { create(:issue, project: project, author: user) }
- let(:user) { create(:user) }
-
- before do
- assign(:project, project)
- assign(:issue, issue)
- assign(:noteable, issue)
- stub_template 'shared/issuable/_sidebar' => ''
- stub_template 'projects/issues/_discussion' => ''
- allow(view).to receive(:user_status).and_return('')
- end
+ include_context 'project show action'
context 'when the issue is closed' do
before do
@@ -152,18 +141,4 @@ describe 'projects/issues/show' do
expect(rendered).not_to have_selector('#js-sentry-error-stack-trace')
end
end
-
- context 'when issue is created by a GitLab team member' do
- let(:user) { create(:user, email: 'test@gitlab.com') }
-
- before do
- allow(Gitlab).to receive(:com?).and_return(true)
- end
-
- it 'renders an employee badge next to their name' do
- render
-
- expect(rendered).to have_selector('[aria-label="GitLab Team Member"]')
- end
- end
end