Skip to content

Commit d5b9fd7

Browse files
committed
openspec test fixup
1 parent c88475a commit d5b9fd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

elasticsearch-api/spec/unit/perform_request_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050
end
5151
end
5252

53+
let(:transport_double) do
54+
Transport ||= Struct.new('Transport', :options)
55+
Transport.new({ transport_options: { headers: {} } })
56+
end
57+
58+
before do
59+
allow(client_double).to receive(:transport).and_return transport_double
60+
allow(Elasticsearch::API::Utils).to receive(:update_ndjson_headers!).and_return(headers)
61+
end
62+
5363
let(:response_double) do
5464
double('response', status: 200, body: {}, headers: {})
5565
end

0 commit comments

Comments
 (0)