summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-02-01 09:11:09 +0000
committerRémy Coutable <remy@rymai.me>2018-02-01 09:11:09 +0000
commit76b9f1a4c5ab9121a2a3f4a0a4e5cabe46580b54 (patch)
treeec9f0c5d2b9d1cb8a01a0e4613a2ea60596eb5bc /qa
parentab0d41e2da736a431681475f3dab43519186e05e (diff)
parent2b6307f6ad9d09156c42befe4babbfea40dad052 (diff)
downloadgitlab-ce-76b9f1a4c5ab9121a2a3f4a0a4e5cabe46580b54.tar.gz
Merge branch '42497-rubocop-style-regexpliteral' into 'master'
Enable Style/RegexpLiteral cop Closes #42497 See merge request gitlab-org/gitlab-ce!16752
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/page/menu/side.rb2
-rw-r--r--qa/spec/runtime/rsa_key.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/page/menu/side.rb b/qa/qa/page/menu/side.rb
index 5fdcea20029..7e028add2ef 100644
--- a/qa/qa/page/menu/side.rb
+++ b/qa/qa/page/menu/side.rb
@@ -7,7 +7,7 @@ module QA
element :settings_link, 'link_to edit_project_path'
element :repository_link, "title: 'Repository'"
element :pipelines_settings_link, "title: 'CI / CD'"
- element :issues_link, %r{link_to.*shortcuts-issues}
+ element :issues_link, /link_to.*shortcuts-issues/
element :issues_link_text, "Issues"
element :top_level_items, '.sidebar-top-level-items'
element :activity_link, "title: 'Activity'"
diff --git a/qa/spec/runtime/rsa_key.rb b/qa/spec/runtime/rsa_key.rb
index ff277b9077b..6d7ab4dcd2e 100644
--- a/qa/spec/runtime/rsa_key.rb
+++ b/qa/spec/runtime/rsa_key.rb
@@ -3,7 +3,7 @@ describe QA::Runtime::RSAKey do
subject { described_class.new.public_key }
it 'generates a public RSA key' do
- expect(subject).to match(/\Assh\-rsa AAAA[0-9A-Za-z+\/]+={0,3}\z/)
+ expect(subject).to match(%r{\Assh\-rsa AAAA[0-9A-Za-z+/]+={0,3}\z})
end
end
end