Skip to content

Commit 4e80ab0

Browse files
committed
only run from a jar
1 parent 8638ec1 commit 4e80ab0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/jar.rb

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
@jar_root = __FILE__.split("!").first + "!"
66
end
77

8+
it "must be only run from a jar" do
9+
insist { __FILE__ } =~ /file:.*!/
10+
end
11+
812
it "must contain GeoLiteCity.dat" do
913
path = File.join(@jar_root, "GeoLiteCity.dat")
1014
insist { File }.exists?(path)

0 commit comments

Comments
 (0)