diff options
author | Stan Hu <stanhu@gmail.com> | 2015-06-22 22:25:40 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-06-22 22:25:40 -0700 |
commit | 52aa21b12d692185a93cca529a2649fdeac6551d (patch) | |
tree | ddbb1c1154d73b17c9f41ffd9ad8c573e2ccc688 /spec/lib/file_size_validator_spec.rb | |
parent | 3446bea719d3e99fbcf91cab8792297cf286fa9c (diff) | |
download | gitlab-ce-52aa21b12d692185a93cca529a2649fdeac6551d.tar.gz |
Fix Style/IndentationWidth cop violations
Diffstat (limited to 'spec/lib/file_size_validator_spec.rb')
-rw-r--r-- | spec/lib/file_size_validator_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/file_size_validator_spec.rb b/spec/lib/file_size_validator_spec.rb index 68f9fb5e1ef..12ccc051c74 100644 --- a/spec/lib/file_size_validator_spec.rb +++ b/spec/lib/file_size_validator_spec.rb @@ -9,9 +9,9 @@ describe 'Gitlab::FileSizeValidatorSpec' do let(:options) { { maximum: 10, attributes: { attachment: attachment } } } it 'attachment exceeds maximum limit' do - allow(attachment).to receive(:size) { 100 } - validator.validate_each(note, :attachment, attachment) - expect(note.errors).to have_key(:attachment) + allow(attachment).to receive(:size) { 100 } + validator.validate_each(note, :attachment, attachment) + expect(note.errors).to have_key(:attachment) end it 'attachment under maximum limit' do |