Maint: Handle windows text mode

On Windows, calling `puts 'foo\n'` will result in 'foo\r\n' being written
to stdout. This commit updates the spec test accordingly.
Maint: Use && instead of ; to separate commands

Previously, running `rake test` would fail on windows due to the ';'. But
using `&&` works on all platforms.
Maint: Mark test as pending on windows

The log_spec test fails due to different behavior of File.basename on
Windows. Mark the example as pending until #20506 is resolved.