diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-02-16 11:21:30 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-03-06 15:41:24 +0100 |
commit | 66dc71599cb698d380e14be7230ae3495c78d266 (patch) | |
tree | fc7bb6a3727f29bbb3491370166ef6e932172e2b /spec | |
parent | e5cf3f51fb568361a247d715facb6cd9bb15bb16 (diff) | |
download | gitlab-ce-66dc71599cb698d380e14be7230ae3495c78d266.tar.gz |
Cleanup formatting
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/auth/unique_ips_limiter_spec.rb | 2 | ||||
-rw-r--r-- | spec/lib/gitlab/request_context_spec.rb | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/spec/lib/gitlab/auth/unique_ips_limiter_spec.rb b/spec/lib/gitlab/auth/unique_ips_limiter_spec.rb index 8e9fea0724a..ccaddddf98f 100644 --- a/spec/lib/gitlab/auth/unique_ips_limiter_spec.rb +++ b/spec/lib/gitlab/auth/unique_ips_limiter_spec.rb @@ -10,7 +10,6 @@ describe Gitlab::Auth::UniqueIpsLimiter, lib: true do end describe '#count_unique_ips' do - context 'non unique IPs' do it 'properly counts them' do expect(Gitlab::Auth::UniqueIpsLimiter.count_unique_ips(user.id, '192.168.1.1')).to eq(1) @@ -39,7 +38,6 @@ describe Gitlab::Auth::UniqueIpsLimiter, lib: true do end end - describe '#limit_user!' do context 'when unique ips limit is enabled' do before do diff --git a/spec/lib/gitlab/request_context_spec.rb b/spec/lib/gitlab/request_context_spec.rb index 3565fab6ded..69c5549c39c 100644 --- a/spec/lib/gitlab/request_context_spec.rb +++ b/spec/lib/gitlab/request_context_spec.rb @@ -3,12 +3,12 @@ require 'spec_helper' describe Gitlab::RequestContext, lib: true do describe '#client_ip' do subject { Gitlab::RequestContext.client_ip } - let(:app) { -> env {} } + let(:app) { -> (env) {} } let(:env) { Hash.new } context 'when RequestStore::Middleware is used' do around(:each) do |example| - RequestStore::Middleware.new(-> env { example.run }).call({}) + RequestStore::Middleware.new(-> (env) { example.run }).call({}) end context 'request' do |