Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed May 21, 2020
1 parent cf3111f commit ec47d06
Showing 1 changed file with 0 additions and 21 deletions.
Expand Up @@ -283,7 +283,6 @@
end

context 'when the adapter can be detected', unless: jruby? do

around do |example|
require 'patron'; load 'patron.rb'
example.run
Expand All @@ -299,7 +298,6 @@
end

context 'when the Faraday adapter is configured' do

let(:client) do
described_class.new do |faraday|
faraday.adapter :patron
Expand All @@ -326,7 +324,6 @@
end

context 'when cloud credentials are provided' do

let(:client) do
described_class.new(cloud_id: 'name:bG9jYWxob3N0JGFiY2QkZWZnaA==', user: 'elastic', password: 'changeme')
end
Expand All @@ -348,7 +345,6 @@
end

context 'when a port is specified' do

let(:client) do
described_class.new(cloud_id: 'name:bG9jYWxob3N0JGFiY2QkZWZnaA==', user: 'elastic', password: 'changeme', port: 9250 )
end
Expand All @@ -367,7 +363,6 @@
end

context 'when the cluster has alternate names' do

let(:client) do
described_class.new(cloud_id: 'myCluster:bG9jYWxob3N0JGFiY2QkZWZnaA==', user: 'elasticfantastic', password: 'tobechanged')
end
Expand All @@ -392,13 +387,9 @@
end

shared_examples_for 'a client that extracts hosts' do

context 'when the host is a String' do

context 'when there is a protocol specified' do

context 'when credentials are specified \'http://USERNAME:PASSWORD@myhost:8080\'' do

let(:host) do
'http://USERNAME:PASSWORD@myhost:8080'
end
Expand All @@ -418,7 +409,6 @@
end

context 'when there is a trailing slash \'http://myhost/\'' do

let(:host) do
'http://myhost/'
end
Expand All @@ -439,7 +429,6 @@
end

context 'when there is a trailing slash with a path \'http://myhost/foo/bar/\'' do

let(:host) do
'http://myhost/foo/bar/'
end
Expand All @@ -452,9 +441,7 @@
end

context 'when the protocol is http' do

context 'when there is no port specified \'http://myhost\'' do

let(:host) do
'http://myhost'
end
Expand Down Expand Up @@ -1617,7 +1604,6 @@
end

context 'when using the Patron adapter', unless: jruby? do

let(:client) do
described_class.new(hosts: ELASTICSEARCH_HOSTS, compression: true, adapter: :patron)
end
Expand All @@ -1636,7 +1622,6 @@
end

context 'when using the Net::HTTP::Persistent adapter' do

let(:client) do
described_class.new(hosts: ELASTICSEARCH_HOSTS, compression: true, adapter: :net_http_persistent)
end
Expand All @@ -1655,7 +1640,6 @@
end

context 'when using the Typhoeus adapter' do

let(:client) do
described_class.new(hosts: ELASTICSEARCH_HOSTS, compression: true, adapter: :typhoeus)
end
Expand All @@ -1676,7 +1660,6 @@
end

context 'when using Curb as the transport', unless: jruby? do

let(:client) do
described_class.new(hosts: ELASTICSEARCH_HOSTS,
compression: true,
Expand All @@ -1697,7 +1680,6 @@
end

context 'when using Manticore as the transport', if: jruby? do

let(:client) do
described_class.new(hosts: ELASTICSEARCH_HOSTS,
compression: true,
Expand All @@ -1711,9 +1693,7 @@
end

describe '#perform_request' do

context 'when a request is made' do

before do
client.perform_request('DELETE', '_all')
client.perform_request('DELETE', 'myindex') rescue
Expand Down Expand Up @@ -1801,7 +1781,6 @@
end

context 'when patron is used as an adapter', unless: jruby? do

before do
require 'patron'
end
Expand Down

0 comments on commit ec47d06

Please sign in to comment.