summaryrefslogtreecommitdiff
path: root/spec/features/projects/features_visibility_spec.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-12-21 16:36:24 -0200
committerFelipe Artur <felipefac@gmail.com>2016-12-29 12:45:44 -0200
commitecbd32a9a4646b4b6579bc9e0808c84c0c68532d (patch)
treeddb3ed5dd48965fdfa2ff15eb780c803f77f67c6 /spec/features/projects/features_visibility_spec.rb
parent7e88b242ce194958c6a59755eb434c17625c4395 (diff)
downloadgitlab-ce-issue_25682.tar.gz
Parse JIRA issue references even if Issue Tracker is disabledissue_25682
Diffstat (limited to 'spec/features/projects/features_visibility_spec.rb')
-rw-r--r--spec/features/projects/features_visibility_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/features/projects/features_visibility_spec.rb b/spec/features/projects/features_visibility_spec.rb
index 3bb33394be7..9079350186d 100644
--- a/spec/features/projects/features_visibility_spec.rb
+++ b/spec/features/projects/features_visibility_spec.rb
@@ -42,6 +42,17 @@ describe 'Edit Project Settings', feature: true do
end
end
+ context "When external issue tracker is enabled" do
+ it "does not hide issues tab" do
+ project.project_feature.update(issues_access_level: ProjectFeature::DISABLED)
+ allow_any_instance_of(Project).to receive(:external_issue_tracker).and_return(JiraService.new)
+
+ visit namespace_project_path(project.namespace, project)
+
+ expect(page).to have_selector(".shortcuts-issues")
+ end
+ end
+
context "pipelines subtabs" do
it "shows builds when enabled" do
visit namespace_project_pipelines_path(project.namespace, project)