Skip to content

Commit bb4d296

Browse files
committed
[Gem] Fixes integration spec for pre releases
1 parent 8c50aaf commit bb4d296

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elasticsearch/spec/integration/client_integration_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
context 'Reports the right meta header' do
5757
it 'Reports es service name and gem versio' do
5858
headers = client.transport.connections.first.connection.headers
59-
expect(headers['x-elastic-client-meta']).to match /^es=#{Elasticsearch::VERSION}/
59+
version = Class.new.extend(Elastic::Transport::MetaHeader).send(:client_meta_version, Elasticsearch::VERSION)
60+
expect(headers['x-elastic-client-meta']).to match /^es=#{version}/
6061
end
6162
end
6263
end

0 commit comments

Comments
 (0)