mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-29 06:26:07 +10:00
Merge branch 'rubocop/enable-unneeded-capital-w-cop' into 'master'
Enable Style/UnneededCapitalW Rubocop cop ## What does this MR do? This MR enables Rubocop cop that checks if `%W[]`, which supports interpolation, is needed. ## What are the relevant issue numbers? #17478 See merge request !5010
This commit is contained in:
@@ -10,7 +10,7 @@ describe 'Gitlab::Popen', lib: true, no_db: true do
|
||||
|
||||
context 'zero status' do
|
||||
before do
|
||||
@output, @status = @klass.new.popen(%W(ls), path)
|
||||
@output, @status = @klass.new.popen(%w(ls), path)
|
||||
end
|
||||
|
||||
it { expect(@status).to be_zero }
|
||||
@@ -19,7 +19,7 @@ describe 'Gitlab::Popen', lib: true, no_db: true do
|
||||
|
||||
context 'non-zero status' do
|
||||
before do
|
||||
@output, @status = @klass.new.popen(%W(cat NOTHING), path)
|
||||
@output, @status = @klass.new.popen(%w(cat NOTHING), path)
|
||||
end
|
||||
|
||||
it { expect(@status).to eq(1) }
|
||||
@@ -34,7 +34,7 @@ describe 'Gitlab::Popen', lib: true, no_db: true do
|
||||
|
||||
context 'without a directory argument' do
|
||||
before do
|
||||
@output, @status = @klass.new.popen(%W(ls))
|
||||
@output, @status = @klass.new.popen(%w(ls))
|
||||
end
|
||||
|
||||
it { expect(@status).to be_zero }
|
||||
|
||||
Reference in New Issue
Block a user