diff --git a/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb b/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb index 5f9bb403aa..605c99b1e5 100644 --- a/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/stanza_grouping_spec.rb @@ -355,8 +355,8 @@ describe RuboCop::Cop::Cask::StanzaGrouping do context "when caveats is a heredoc" do let(:caveats) do - <<-CAVEATS.undent - caveats <<-EOS.undent + <<~CAVEATS + caveats <<~EOS This is a multiline caveat. Let's hope it doesn't cause any problems! @@ -369,7 +369,7 @@ describe RuboCop::Cop::Cask::StanzaGrouping do context "when caveats is a block" do let(:caveats) do - <<-CAVEATS.undent + <<~CAVEATS caveats do puts 'This is a multiline caveat.' diff --git a/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb b/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb index 621ed194c9..9d515c275d 100644 --- a/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb +++ b/Library/Homebrew/test/rubocops/cask/stanza_order_spec.rb @@ -399,8 +399,8 @@ describe RuboCop::Cop::Cask::StanzaOrder do context "when caveats is a heredoc" do let(:caveats) do - <<-CAVEATS.undent - caveats <<-EOS.undent + <<~CAVEATS + caveats <<~EOS This is a multiline caveat. Let's hope it doesn't cause any problems! @@ -413,7 +413,7 @@ describe RuboCop::Cop::Cask::StanzaOrder do context "when caveats is a block" do let(:caveats) do - <<-CAVEATS.undent + <<~CAVEATS caveats do puts 'This is a multiline caveat.'