diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-06 15:04:26 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-04-06 15:04:26 +0200 |
commit | b828a98c1c07fa07a0e80b73eadf568d68aefeea (patch) | |
tree | 32b0d89134aadf98982e73a34cc102bc79a4d6ed /spec/serializers | |
parent | 8a1c12aa6f9f0f4d7815b5c7c945caadcfc5e10d (diff) | |
download | gitlab-ce-b828a98c1c07fa07a0e80b73eadf568d68aefeea.tar.gz |
Optimise includes
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/pipeline_serializer_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/serializers/pipeline_serializer_spec.rb b/spec/serializers/pipeline_serializer_spec.rb index add43182cc2..54cb9babe45 100644 --- a/spec/serializers/pipeline_serializer_spec.rb +++ b/spec/serializers/pipeline_serializer_spec.rb @@ -105,7 +105,8 @@ describe PipelineSerializer do it "verifies number of queries" do recorded = ActiveRecord::QueryRecorder.new { subject } - expect(recorded.count).to be_within(200).of(10) + expect(recorded.count).to be_within(10).of(230) + expect(recorded.cached_count).to be_within(5).of(5) end def create_pipeline(status) |