Skip to content

Commit c9657e9

Browse files
committed
Whitespace
1 parent e889c5d commit c9657e9

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

elasticsearch-transport/spec/elasticsearch/transport/client_spec.rb

+6-21
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@
355355
end
356356

357357
context 'when there is a port specified \'http://myhost:7101\'' do
358-
359358
let(:host) do
360359
'http://myhost:7101'
361360
end
@@ -373,7 +372,6 @@
373372
end
374373

375374
context 'when there is a path specified \'http://myhost:7101/api\'' do
376-
377375
let(:host) do
378376
'http://myhost:7101/api'
379377
end
@@ -405,9 +403,7 @@
405403
end
406404

407405
context 'when the protocol is https' do
408-
409406
context 'when there is no port specified \'https://myhost\'' do
410-
411407
let(:host) do
412408
'https://myhost'
413409
end
@@ -426,7 +422,6 @@
426422
end
427423

428424
context 'when there is a port specified \'https://myhost:7101\'' do
429-
430425
let(:host) do
431426
'https://myhost:7101'
432427
end
@@ -828,7 +823,6 @@
828823
end
829824

830825
context 'when the hosts is invalid' do
831-
832826
let(:host) do
833827
123
834828
end
@@ -842,7 +836,6 @@
842836
end
843837

844838
context 'when hosts are specified with the \'host\' key' do
845-
846839
let(:client) do
847840
described_class.new(host: ['host1', 'host2', 'host3', 'host4'], randomize_hosts: true)
848841
end
@@ -857,7 +850,6 @@
857850
end
858851

859852
context 'when hosts are specified with the \'host\' key as a String' do
860-
861853
let(:client) do
862854
described_class.new('host' => ['host1', 'host2', 'host3', 'host4'], 'randomize_hosts' => true)
863855
end
@@ -872,7 +864,6 @@
872864
end
873865

874866
context 'when hosts are specified with the \'hosts\' key' do
875-
876867
let(:client) do
877868
described_class.new(hosts: host)
878869
end
@@ -885,7 +876,6 @@
885876
end
886877

887878
context 'when hosts are specified with the \'hosts\' key as a String' do
888-
889879
let(:client) do
890880
described_class.new('hosts' => host)
891881
end
@@ -898,7 +888,6 @@
898888
end
899889

900890
context 'when hosts are specified with the \'url\' key' do
901-
902891
let(:client) do
903892
described_class.new(url: host)
904893
end
@@ -911,7 +900,6 @@
911900
end
912901

913902
context 'when hosts are specified with the \'url\' key as a String' do
914-
915903
let(:client) do
916904
described_class.new('url' => host)
917905
end
@@ -924,7 +912,6 @@
924912
end
925913

926914
context 'when hosts are specified with the \'urls\' key' do
927-
928915
let(:client) do
929916
described_class.new(urls: host)
930917
end
@@ -937,7 +924,6 @@
937924
end
938925

939926
context 'when hosts are specified with the \'urls\' key as a String' do
940-
941927
let(:client) do
942928
described_class.new('urls' => host)
943929
end
@@ -1134,7 +1120,6 @@
11341120
end
11351121

11361122
context 'when \'request_timeout\' is defined' do
1137-
11381123
let(:client) do
11391124
described_class.new(request_timeout: 120)
11401125
end
@@ -1145,7 +1130,6 @@
11451130
end
11461131

11471132
context 'when \'request_timeout\' is defined as a String key' do
1148-
11491133
let(:client) do
11501134
described_class.new('request_timeout' => 120)
11511135
end
@@ -1157,7 +1141,6 @@
11571141
end
11581142

11591143
describe '#perform_request' do
1160-
11611144
let(:transport_instance) do
11621145
Class.new { def initialize(*); end }.new
11631146
end
@@ -1172,15 +1155,17 @@
11721155
end
11731156

11741157
context 'when the \'send_get_body_as\' option is specified' do
1175-
11761158
let(:client) do
11771159
described_class.new(transport: transport_instance, :send_get_body_as => 'POST')
11781160
end
11791161

11801162
before do
1181-
expect(transport_instance).to receive(:perform_request).with('POST', '/', {},
1182-
'{"foo":"bar"}',
1183-
'{"Content-Type":"application/x-ndjson"}').and_return(true)
1163+
expect(transport_instance).to receive(:perform_request)
1164+
.with(
1165+
'POST', '/', {},
1166+
'{"foo":"bar"}',
1167+
'{"Content-Type":"application/x-ndjson"}'
1168+
).and_return(true)
11841169
end
11851170

11861171
let(:request) do

0 commit comments

Comments
 (0)