only run from a jar

This commit is contained in:
Jordan Sissel 2012-11-10 01:06:11 -05:00
parent 8638ec18f2
commit 4e80ab0a6b

View file

@ -5,6 +5,10 @@ describe "logstash jar features" do
@jar_root = __FILE__.split("!").first + "!"
end
it "must be only run from a jar" do
insist { __FILE__ } =~ /file:.*!/
end
it "must contain GeoLiteCity.dat" do
path = File.join(@jar_root, "GeoLiteCity.dat")
insist { File }.exists?(path)