>  then we will be uploading to the Ubuntu node a script with a mix of Windows and UNIX line terminations

Just to be clear: you're saying this is what _currently_ happens? In that case, I'd also vote for fixing the problem rather than making the test failure go away - file generation for a specific platform should consistently use the line termination _for that platform_, independent of where the files are generated.

It's good the Chef doesn't trip over that, but it still looks like a bug to me.