Favor Ruby 2.3 squiggly-heredoc operator (#7584)

Merge pull request 7584
This commit is contained in:
Ashwin Maroli
2019-03-22 21:48:58 +05:30
committed by jekyllbot
parent dea6bdbfaf
commit 2090989fb3
4 changed files with 13 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ end
#
Given(%r!^I have an? "(.*)" page(?: with (.*) "(.*)")? that contains "(.*)"$!) do |file, key, value, text|
File.write(file, Jekyll::Utils.strip_heredoc(<<-DATA))
File.write(file, <<~DATA)
---
#{key || "layout"}: #{value || "none"}
---