aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/string.rb
diff options
context:
space:
mode:
authorMichael Morgan2010-10-17 18:27:10 -0400
committerAdam Vandenberg2010-10-17 21:13:16 -0700
commit3ea550100f948e307ecd67413089faf6b5057f20 (patch)
tree945521832e23cf06667242bd4780774a63db3395 /Library/Homebrew/extend/string.rb
parent599c7fe7d073028d853337f02a957c9e9140d120 (diff)
downloadbrew-3ea550100f948e307ecd67413089faf6b5057f20.tar.bz2
extract undent test to test case
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend/string.rb')
-rw-r--r--Library/Homebrew/extend/string.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/Library/Homebrew/extend/string.rb b/Library/Homebrew/extend/string.rb
index 974906b1d..ddc5fdf7f 100644
--- a/Library/Homebrew/extend/string.rb
+++ b/Library/Homebrew/extend/string.rb
@@ -3,13 +3,3 @@ class String
gsub /^.{#{slice(/^ +/).length}}/, ''
end
end
-
-if __FILE__ == $0
- undented = <<-EOS.undent
- hi
-....my friend over
- there
- EOS
-
- assert undented == "hi\nmy friend over\nthere\n"
-end