Extracted out logic to convert erb template into yaml

The method ```generate_input_yaml_config``` is duplicated in multiple
integration specs. Extracted this logic into ```ErbHelper```.

```ErbHelper``` is a test helper and gets loaded only by spec_helper.rb.