Sha256: 409abed0db98d3b54073ec9fad33446e78c31bdc33804dae35c3fb48a831f6e2
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
require 'tempfile' RSpec.configure do |c| c.include(Module.new do def enumerable_to_file range file = Tempfile.new("test-#{range}") file.write(range.to_a.join("\n")) file.flush file.seek(0) file end def string_to_file string file = Tempfile.new("test-string") file.write(string) file.flush file.seek(0) file end def log2 n Math.log(n) / Math.log(2) end end) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
log_slice-0.3 | spec/helper.rb |
log_slice-0.2 | spec/helper.rb |