You could make separate tests for the Host Os's and stub RbConfig::Config['host_os'] - can you actually stub constants? Hmmmm.