diff options
author | Stan Hu <stanhu@gmail.com> | 2018-02-12 22:15:26 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-02-12 22:41:03 +0300 |
commit | 04b642889a0459ff38cca043c5898ba4647d2fc6 (patch) | |
tree | 81e532ba5f3f1a07163aa53d6a6c3b8b5d7ea4c2 /spec/lib/gitlab/query_limiting_spec.rb | |
parent | 498ade4801a822f8704390b10d178af9fe7987cb (diff) |
Disable query limiting warnings for now on GitLab.com
Diffstat (limited to 'spec/lib/gitlab/query_limiting_spec.rb')
-rw-r--r-- | spec/lib/gitlab/query_limiting_spec.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/lib/gitlab/query_limiting_spec.rb b/spec/lib/gitlab/query_limiting_spec.rb index 2eddab0b8c3..42877b1e2dd 100644 --- a/spec/lib/gitlab/query_limiting_spec.rb +++ b/spec/lib/gitlab/query_limiting_spec.rb @@ -12,14 +12,16 @@ describe Gitlab::QueryLimiting do expect(described_class.enable?).to eq(true) end - it 'returns true on GitLab.com' do + it 'returns false on GitLab.com' do + expect(Rails.env).to receive(:development?).and_return(false) + expect(Rails.env).to receive(:test?).and_return(false) allow(Gitlab).to receive(:com?).and_return(true) - expect(described_class.enable?).to eq(true) + expect(described_class.enable?).to eq(false) end - it 'returns true in a non GitLab.com' do - expect(Gitlab).to receive(:com?).and_return(false) + it 'returns false in a non GitLab.com' do + allow(Gitlab).to receive(:com?).and_return(false) expect(Rails.env).to receive(:development?).and_return(false) expect(Rails.env).to receive(:test?).and_return(false) |