Sha256: 756c1c3e22b8440f532c24bcc6d9972d88ca2afd8eff89c94d545894dfda579e
Contents?: true
Size: 324 Bytes
Versions: 4
Compression:
Stored size: 324 Bytes
Contents
require "securerandom" module Sparkey::Testing def random_filename "test-#{SecureRandom.hex(16)}" end def delete(filename) log_file = "#{filename}.spl" index_file = "#{filename}.spi" File.delete(log_file) if File.exists?(log_file) File.delete(index_file) if File.exists?(index_file) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sparkey-1.3.0 | lib/sparkey/testing.rb |
sparkey-1.2.0 | lib/sparkey/testing.rb |
sparkey-1.1.0 | lib/sparkey/testing.rb |
sparkey-1.0.0 | lib/sparkey/testing.rb |