Commit 52aa21b1 authored by Stan Hu's avatar Stan Hu

Fix Style/IndentationWidth cop violations

parent 3446bea7
...@@ -9,9 +9,9 @@ describe 'Gitlab::FileSizeValidatorSpec' do ...@@ -9,9 +9,9 @@ describe 'Gitlab::FileSizeValidatorSpec' do
let(:options) { { maximum: 10, attributes: { attachment: attachment } } } let(:options) { { maximum: 10, attributes: { attachment: attachment } } }
it 'attachment exceeds maximum limit' do it 'attachment exceeds maximum limit' do
allow(attachment).to receive(:size) { 100 } allow(attachment).to receive(:size) { 100 }
validator.validate_each(note, :attachment, attachment) validator.validate_each(note, :attachment, attachment)
expect(note.errors).to have_key(:attachment) expect(note.errors).to have_key(:attachment)
end end
it 'attachment under maximum limit' do it 'attachment under maximum limit' do
......
...@@ -121,7 +121,7 @@ describe Grack::Auth do ...@@ -121,7 +121,7 @@ describe Grack::Auth do
context "when the user isn't blocked" do context "when the user isn't blocked" do
before do before do
expect(Rack::Attack::Allow2Ban).to receive(:reset) expect(Rack::Attack::Allow2Ban).to receive(:reset)
end end
it "responds with status 200" do it "responds with status 200" do
......
...@@ -127,7 +127,7 @@ module Gitlab::Markdown ...@@ -127,7 +127,7 @@ module Gitlab::Markdown
it 'gracefully handles non-references matching the pattern' do it 'gracefully handles non-references matching the pattern' do
exp = act = '(format nil "~0f" 3.0) ; 3.0' exp = act = '(format nil "~0f" 3.0) ; 3.0'
expect(filter(act).to_html).to eq exp expect(filter(act).to_html).to eq exp
end end
end end
end end
end end
...@@ -11,10 +11,10 @@ describe Projects::UpdateService do ...@@ -11,10 +11,10 @@ describe Projects::UpdateService do
context 'should be private when updated to private' do context 'should be private when updated to private' do
before do before do
@created_private = @project.private? @created_private = @project.private?
@opts.merge!(visibility_level: Gitlab::VisibilityLevel::PRIVATE) @opts.merge!(visibility_level: Gitlab::VisibilityLevel::PRIVATE)
update_project(@project, @user, @opts) update_project(@project, @user, @opts)
end end
it { expect(@created_private).to be_truthy } it { expect(@created_private).to be_truthy }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment