aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_string.rb')
-rw-r--r--Library/Homebrew/test/test_string.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_string.rb b/Library/Homebrew/test/test_string.rb
index 6f8692367..547e99c3d 100644
--- a/Library/Homebrew/test/test_string.rb
+++ b/Library/Homebrew/test/test_string.rb
@@ -10,4 +10,12 @@ class StringTest < Test::Unit::TestCase
EOS
assert undented == "hi\nmy friend over\nthere\n"
end
+
+ def test_undent_not_indented
+ undented = <<-EOS.undent
+hi
+I'm not indented
+ EOS
+ assert undented == "hi\nI'm not indented\n"
+ end
end