Skip to content

Commit 0288fb5

Browse files
committed
Adds missing require
1 parent e084738 commit 0288fb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

elasticsearch/spec/integration/characters_escaping_spec.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
ELASTICSEARCH_URL = ENV['TEST_ES_SERVER'] || "http://localhost:#{(ENV['PORT'] || 9200)}"
18-
raise URI::InvalidURIError unless ELASTICSEARCH_URL =~ /\A#{URI::DEFAULT_PARSER.make_regexp}\z/
1917

2018
require 'spec_helper'
19+
require 'uri'
20+
21+
ELASTICSEARCH_URL = ENV['TEST_ES_SERVER'] || "http://localhost:#{(ENV['PORT'] || 9200)}"
22+
raise URI::InvalidURIError unless ELASTICSEARCH_URL =~ /\A#{URI::DEFAULT_PARSER.make_regexp}\z/
2123

2224
context 'Elasticsearch client' do
2325
let(:client) do

elasticsearch/spec/integration/client_integration_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
require 'spec_helper'
2121
require 'logger'
22+
require 'uri'
2223

2324
context 'Elasticsearch client' do
2425
let(:logger) { Logger.new($stderr) }

0 commit comments

Comments
 (0)