Skip to content

Commit

Permalink
Move RSpec::Benchmark::Matchers include from the spec helper to the s…
Browse files Browse the repository at this point in the history
…pec that actually needs it
  • Loading branch information
sandbergja committed Jan 6, 2025
1 parent e03b66a commit b01b1a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions spec/models/blacklight/solr/response_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'rspec-benchmark'

RSpec.describe Blacklight::Solr::Response, :api do
let(:raw_response) { eval(mock_query_response) }

Expand Down Expand Up @@ -68,6 +70,8 @@
end

context 'when aggregations are very large' do
include RSpec::Benchmark::Matchers

let(:raw_response) { eval(mock_query_response_with_lots_of_facets) }

it 'null object generation is relatively performant' do
Expand Down
6 changes: 0 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
require 'rsolr'
require 'blacklight'

require 'rspec-benchmark'

RSpec.configure do |config|
config.include RSpec::Benchmark::Matchers
end

Capybara.javascript_driver = :headless_chrome

Capybara.register_driver :headless_chrome do |app|
Expand Down

0 comments on commit b01b1a9

Please sign in to comment.