aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/string_spec.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-05-29 19:22:46 +0100
committerGitHub2017-05-29 19:22:46 +0100
commit744e7dd1907aaf6493e6e4622a5997b562bfbf17 (patch)
treebbc05eebc29bdb6d539cd0e9d197b3762b49ffce /Library/Homebrew/test/string_spec.rb
parent3165fd2519c41a2be7e12442a5098d3b699fda04 (diff)
parent7a38bab333c6808022fe53aac2be9ca2e329cd53 (diff)
downloadbrew-744e7dd1907aaf6493e6e4622a5997b562bfbf17.tar.bz2
Merge pull request #2679 from MikeMcQuaid/parallel-rubocop
Use parallel RuboCop
Diffstat (limited to 'Library/Homebrew/test/string_spec.rb')
-rw-r--r--Library/Homebrew/test/string_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/test/string_spec.rb b/Library/Homebrew/test/string_spec.rb
index d1b820b66..ce26d70d4 100644
--- a/Library/Homebrew/test/string_spec.rb
+++ b/Library/Homebrew/test/string_spec.rb
@@ -3,19 +3,19 @@ require "extend/string"
describe String do
describe "#undent" do
it "removes leading whitespace, taking the first line as reference" do
- string = <<-EOS.undent
- hi
-........my friend over
- there
+ string = <<-EOS.unindent
+ hi
+ ........my friend over
+ there
EOS
expect(string).to eq("hi\n........my friend over\n there\n")
end
it "removes nothing if the text is not indented" do
- string = <<-EOS.undent
-hi
-I'm not indented
+ string = <<-EOS.unindent
+ hi
+ I'm not indented
EOS
expect(string).to eq("hi\nI'm not indented\n")