We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29019d7 commit d9526a5Copy full SHA for d9526a5
elasticsearch-rails/test/unit/instrumentation/instrumentation_test.rb
@@ -20,9 +20,8 @@ def self.document_type; 'bar'; end
20
21
setup do
22
@search = Elasticsearch::Model::Searching::SearchRequest.new ::DummyInstrumentationModel, '*'
23
- @response = Elasticsearch::Model::Response::Response.new ::DummyInstrumentationModel, @search
24
25
- @client = stub('client', search: @response)
+ @client = stub('client', search: RESPONSE)
26
DummyInstrumentationModel.stubs(:client).returns(@client)
27
28
Elasticsearch::Rails::Instrumentation::Railtie.run_initializers
0 commit comments