Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2018-12-13 09:54:30 +0300
committerSemyon Pupkov <mail@semyonpupkov.com>2018-12-13 09:54:30 +0300
commitf95505415949f163976c30d63a2b1b0be6e7ff77 (patch)
tree17149f1601fe1e590c0eeb7626a9e2f434c406a3 /spec/features/issues/user_creates_issue_spec.rb
parent4d19a84b88ed4310f3772502fd040c24ba1d94e7 (diff)
Fix warning already initialized constant LABEL_TITLES
spec/features/projects/labels/user_views_labels_spec.rb:7: warning: already initialized constant LABEL_TITLES spec/features/issues/user_creates_issue_spec.rb:67: warning: previous definition of LABEL_TITLES was here
Diffstat (limited to 'spec/features/issues/user_creates_issue_spec.rb')
-rw-r--r--spec/features/issues/user_creates_issue_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/features/issues/user_creates_issue_spec.rb b/spec/features/issues/user_creates_issue_spec.rb
index 687a6f1eafc..830d56035aa 100644
--- a/spec/features/issues/user_creates_issue_spec.rb
+++ b/spec/features/issues/user_creates_issue_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require "spec_helper"
describe "User creates issue" do
@@ -64,10 +66,10 @@ describe "User creates issue" do
end
context "with labels" do
- LABEL_TITLES = %w(bug feature enhancement).freeze
+ let(:label_titles) { %w(bug feature enhancement) }
before do
- LABEL_TITLES.each do |title|
+ label_titles.each do |title|
create(:label, project: project, title: title)
end
end
@@ -77,13 +79,13 @@ describe "User creates issue" do
fill_in("Title", with: issue_title)
click_button("Label")
- click_link(LABEL_TITLES.first)
+ click_link(label_titles.first)
click_button("Submit issue")
expect(page).to have_content(issue_title)
.and have_content(user.name)
.and have_content(project.name)
- .and have_content(LABEL_TITLES.first)
+ .and have_content(label_titles.first)
end
end
end