spec/helper.rb in log_slice-0.1 vs spec/helper.rb in log_slice-0.2
- old
+ new
@@ -1,10 +1,10 @@
require 'tempfile'
RSpec.configure do |c|
c.include(Module.new do
- def range_to_file range
+ def enumerable_to_file range
file = Tempfile.new("test-#{range}")
file.write(range.to_a.join("\n"))
file.flush
file.seek(0)
file
\ No newline at end of file