Sha256: ddbe6a4db7485a69f71252b2bef44fc4cb69a37b8b847418a207cb8b1560295a
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require 'tempfile' RSpec.configure do |c| c.include(Module.new do def enumerable_to_file range file = Tempfile.new("test-enum") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
log_slice-0.4 | spec/helper.rb |