gruntjs/grunt — pull request #743 by francescomari (2013-03-28 23:35:50+00:00)
Title: Use os.EOL instead of plain new line literal.

Some tests fail on Windows because of the usage of the "\n" literal when checking content of files. These failures can be fixed by using os.EOL instead of the literal.

Following, affected tests.

>> file - read
>> Message: file should be read as utf8 by default.
>> Error: 'Ação é isso aí\r\n' === 'Ação é isso aí\n'
>> at Object.exports.file.read (test\grunt\file_test.js:374:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - read
>> Message: file should be read using the specified encoding.
>> Error: 'Ação é isso aí\r\n' === 'Ação é isso aí\n'
>> at Object.exports.file.read (test\grunt\file_test.js:375:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - read
>> Message: changing the default encoding should work.
>> Error: 'Ação é isso aí\r\n' === 'Ação é isso aí\n'
>> at Object.exports.file.read (test\grunt\file_test.js:380:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process
>> Message: file should be saved as properly encoded processed string.
>> Error: 'føøAção é isso aí\r\nbår' == 'føøAção é isso aí\nbår'
>> at Object.exports.file.copy and process (test\grunt\file_test.js:479:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process
>> Message: file should be saved as properly encoded processed string.
>> Error: 'føøAção é isso aí\r\nbår' == 'føøAção é isso aí\nbår'
>> at Object.exports.file.copy and process (test\grunt\file_test.js:491:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process
>> Message: file should be saved as the buffer returned by process.
>> Error: 'føøAção é isso aí\r\nbår' == 'føøAção é isso aí\nbår'
>> at Object.exports.file.copy and process (test\grunt\file_test.js:502:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process
>> Message: file should be saved as properly encoded processed string.
>> Error: 'føøAção é isso aí\r\nbår' == 'føøAção é isso aí\nbår'
>> at Object.exports.file.copy and process (test\grunt\file_test.js:514:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process, noprocess
>> Message: file should not have been processed.
>> Error: 'Ação é isso aí\r\n' == 'Ação é isso aí\n'
>> at Object.exports.file.copy and process, noprocess (test\grunt\file_test.js:536:10)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process, noprocess
>> Message: file should have been processed.
>> Error: 'føøAção é isso aí\r\nbår' == 'føøAção é isso aí\nbår'
>> at Object. (test\grunt\file_test.js:550:14)
>> at Array.forEach (native)
>> at Object.exports.file.copy and process, noprocess (test\grunt\file_test.js:539:48)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process, noprocess
>> Message: file should not have been processed.
>> Error: 'Ação é isso aí\r\n' == 'Ação é isso aí\n'
>> at Object. (test\grunt\file_test.js:552:14)
>> at Array.forEach (native)
>> at Object.exports.file.copy and process, noprocess (test\grunt\file_test.js:539:48)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)

>> file - copy and process, noprocess
>> Message: file should not have been processed.
>> Error: 'Ação é isso aí\r\n' == 'Ação é isso aí\n'
>> at Object. (test\grunt\file_test.js:552:14)
>> at Array.forEach (native)
>> at Object.exports.file.copy and process, noprocess (test\grunt\file_test.js:539:48)
>> at Object.exports.file.setUp (test\grunt\file_test.js:365:5)