# Monkeypatch to remove indentation from the beginning of heredoc strings used in specs # so that we can include them in our code in a more readable way class String def heredoc_unindent gsub(/^#{ scan(/^\s*/).min_by(&:length) }/, "") end end