We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c50aaf commit bb4d296Copy full SHA for bb4d296
elasticsearch/spec/integration/client_integration_spec.rb
@@ -56,7 +56,8 @@
56
context 'Reports the right meta header' do
57
it 'Reports es service name and gem versio' do
58
headers = client.transport.connections.first.connection.headers
59
- expect(headers['x-elastic-client-meta']).to match /^es=#{Elasticsearch::VERSION}/
+ version = Class.new.extend(Elastic::Transport::MetaHeader).send(:client_meta_version, Elasticsearch::VERSION)
60
+ expect(headers['x-elastic-client-meta']).to match /^es=#{version}/
61
end
62
63
0 commit comments