Use a block to write to the travis file instead of stubbing out the method. Block was moved outside of tested code