summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-22 22:25:40 -0700
committerStan Hu <stanhu@gmail.com>2015-06-22 22:25:40 -0700
commit52aa21b12d692185a93cca529a2649fdeac6551d (patch)
treeddbb1c1154d73b17c9f41ffd9ad8c573e2ccc688 /spec/lib
parent3446bea719d3e99fbcf91cab8792297cf286fa9c (diff)
downloadgitlab-ce-52aa21b12d692185a93cca529a2649fdeac6551d.tar.gz
Fix Style/IndentationWidth cop violations
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/file_size_validator_spec.rb6
-rw-r--r--spec/lib/gitlab/backend/grack_auth_spec.rb2
-rw-r--r--spec/lib/gitlab/markdown/label_reference_filter_spec.rb2
3 files changed, 5 insertions, 5 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
diff --git a/spec/lib/gitlab/backend/grack_auth_spec.rb b/spec/lib/gitlab/backend/grack_auth_spec.rb
index d62a3f8cc2d..d9676445908 100644
--- a/spec/lib/gitlab/backend/grack_auth_spec.rb
+++ b/spec/lib/gitlab/backend/grack_auth_spec.rb
@@ -121,7 +121,7 @@ describe Grack::Auth do
context "when the user isn't blocked" do
before do
- expect(Rack::Attack::Allow2Ban).to receive(:reset)
+ expect(Rack::Attack::Allow2Ban).to receive(:reset)
end
it "responds with status 200" do
diff --git a/spec/lib/gitlab/markdown/label_reference_filter_spec.rb b/spec/lib/gitlab/markdown/label_reference_filter_spec.rb
index cf3337b1ba1..e9f8ed277a5 100644
--- a/spec/lib/gitlab/markdown/label_reference_filter_spec.rb
+++ b/spec/lib/gitlab/markdown/label_reference_filter_spec.rb
@@ -127,7 +127,7 @@ module Gitlab::Markdown
it 'gracefully handles non-references matching the pattern' do
exp = act = '(format nil "~0f" 3.0) ; 3.0'
expect(filter(act).to_html).to eq exp
- end
+ end
end
end
end