Sha256: 5b52a5d8bcd242e5c509c9b6c7acf0ab06ab5de3cf5157e0e9078a3fd0a88930
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
require 'tmpdir' require 'lib/public_suffix_list' options = { :cache_dir => Dir.tmpdir, :cache_expiry_period => 10, :effective_tld_names_url => "spec/test.dat" } describe PublicSuffixList do before do File.delete(File.join(Dir.tmpdir, "test.dat.cache")) if File.exist?(File.join(Dir.tmpdir, "test.dat.cache")) end it "should cache when instructed to" do public_suffix_list = PublicSuffixList.new(options) File.exist?(File.join(Dir.tmpdir, "test.dat.cache")).should be true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
public-suffix-list-0.0.3 | spec/caching.spec |