mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
16 lines
495 B
Ruby
16 lines
495 B
Ruby
require "logstash/environment"
|
|
|
|
describe LogStash::Environment do
|
|
|
|
describe "load_elasticsearch_jars!" do
|
|
|
|
it "should load elasticsarch jars" do
|
|
expect{LogStash::Environment.load_elasticsearch_jars!}.to_not raise_error
|
|
end
|
|
|
|
it "should raise when cannot find elasticsarch jars" do
|
|
stub_const("LogStash::Environment::JAR_DIR", "/some/invalid/path")
|
|
expect{LogStash::Environment.load_elasticsearch_jars!}.to raise_error(LogStash::EnvironmentError)
|
|
end
|
|
end
|
|
end
|