blob: 551ce21840d6869e8314300f4aa4f2b41a8f7c05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'spec_helper'
describe TrendingProjectsFinder, benchmark: true do
describe '#execute' do
let(:finder) { described_class.new }
let(:user) { create(:user) }
# to_a is used to force actually running the query (instead of just building
# it).
benchmark_subject { finder.execute(user).non_archived.to_a }
it { is_expected.to iterate_per_second(500) }
end
end
|