Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (14 sloc) 0.551 kb
###
Test CSV - Copyright David Worms <open@adaltas.com> (BSD Licensed)
###
require 'coffee-script'
fs = require 'fs'
should = require 'should'
csv = if process.env.CSV_COV then require '../lib-cov' else require '../src'
generator = if process.env.CSV_COV then require '../lib-cov/generator' else require '../src/generator'
describe 'pipe', ->
it 'should pipe to a file writable stream', (next) ->
path = "/tmp/large.out"
w = generator(start: true, duration: 1000).pipe csv().to.path path
w.on 'close', ->
fs.unlink path, next
Jump to Line
Something went wrong with that request. Please try again.