All pastes #355874 Raw Edit

Something

public text v1 · immutable
·published 2007-02-14 20:09 UTC
rendered paste body
    def test_transcoder
      filesdir = File.dirname(__FILE__) + '/../fixtures/files/itunes/'
      tmpdir = Dir.new(filesdir + 'tmp')
      @track_file.asset = File.new(filesdir + 'flac_track.flac')
      #assert @track_file.valid?
      assert FileTest.exists?(@track_file.asset.path)
      @track_file.copy_to(tmpdir.path)
      assert FileTest.exists?(tmpdir.path + 'flac_track.flac')
      breakpoint
      @track_file.convert_flac_to_wav
      assert FileTest.exists?(tmpdir.path + 'flac_track.wav')
    end