aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/support/helper
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-15 02:28:32 +0200
committerMarkus Reiter2017-10-18 14:39:09 +0200
commit9bee9ca5757d1c5f720787737fed6a534a620d72 (patch)
treeb1eed297d9eb169673d2ed308e5ef3ca3bb09d12 /Library/Homebrew/test/support/helper
parent270b752f5d9d218bfbed6fe85b6974fa653fb25f (diff)
downloadbrew-9bee9ca5757d1c5f720787737fed6a534a620d72.tar.bz2
Use “squiggly” heredocs.
Diffstat (limited to 'Library/Homebrew/test/support/helper')
-rw-r--r--Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
index 7bf2ce96a..da01580c2 100644
--- a/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
+++ b/Library/Homebrew/test/support/helper/spec/shared_context/integration_test.rb
@@ -123,7 +123,7 @@ RSpec.shared_context "integration test" do
def setup_test_formula(name, content = nil)
case name
when /^testball/
- content = <<-EOS.undent
+ content = <<~EOS
desc "Some test"
homepage "https://example.com/#{name}"
url "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz"
@@ -145,18 +145,18 @@ RSpec.shared_context "integration test" do
# something here
EOS
when "foo"
- content = <<-EOS.undent
+ content = <<~EOS
url "https://example.com/#{name}-1.0"
EOS
when "bar"
- content = <<-EOS.undent
+ content = <<~EOS
url "https://example.com/#{name}-1.0"
depends_on "foo"
EOS
end
Formulary.core_path(name).tap do |formula_path|
- formula_path.write <<-EOS.undent
+ formula_path.write <<~EOS
class #{Formulary.class_s(name)} < Formula
#{content}
end