BigW Consortium Gitlab

Commit b3cf3d04 by Oswaldo Ferreira

Make sure fixture creation does not affect query count test

parent 3e08713c
......@@ -122,9 +122,12 @@ describe Projects::MergeRequestsController do
context 'number of queries' do
it 'verifies number of queries' do
# pre-create objects
merge_request
recorded = ActiveRecord::QueryRecorder.new { go(format: :json) }
expect(recorded.count).to be_within(1).of(94)
expect(recorded.count).to be_within(1).of(51)
expect(recorded.cached_count).to eq(0)
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment