travis.rb
travis.rb copied to clipboard
Only remove trailing newline
That will also remove all empty lines, I think. Could you add a test to reflect the changed behaviour?
@henrikhodne: Done
@rkh @henrikhodne: Ping
@Aaron1011 Could you add a test for this as well?
@henrikhodne: How would I write a test for this? The modified data (without the trailing newline) gets encrypted, and given as the output of the command.
@Aaron1011 Hmm, good point. We would have to add tests for how things are encrypted, which would require "hijacking" the key by giving some key that we know the private key for, which would require mocking the response at some point.
If you want to try adding tests for it, go ahead, otherwise I guess this might not be as important. @rkh, what do you think?
@henrikhodne: (Just seeing this PR again after several months) Should I add tests?