aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_inreplace.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-16 11:57:55 -0700
committerAdam Vandenberg2010-03-16 12:00:00 -0700
commit068c3aced54392e0a7b4f297d13a3df82a915600 (patch)
tree3ce96e23789b5b7b5cf1974e4fde4ef31a614096 /Library/Homebrew/test/test_inreplace.rb
parentf82f7f9a2c6e2121698b95a5d31047f2ab41d743 (diff)
downloadhomebrew-068c3aced54392e0a7b4f297d13a3df82a915600.tar.bz2
Use tab/space when finding vars (and not newlines).
Diffstat (limited to 'Library/Homebrew/test/test_inreplace.rb')
-rw-r--r--Library/Homebrew/test/test_inreplace.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_inreplace.rb b/Library/Homebrew/test/test_inreplace.rb
index 74a5eed65..d2d2d4cfc 100644
--- a/Library/Homebrew/test/test_inreplace.rb
+++ b/Library/Homebrew/test/test_inreplace.rb
@@ -15,6 +15,14 @@ class InreplaceTest < Test::Unit::TestCase
assert_equal "FLAG=def\nFLAG2=abc", s1
end
+ def test_change_make_var_empty_2
+ # Replace empty flag
+ s1="FLAG = \nmv file_a file_b"
+ s1.extend(HomebrewInreplaceExtension)
+ s1.change_make_var! "FLAG", "def"
+ assert_equal "FLAG=def\nmv file_a file_b", s1
+ end
+
def test_change_make_var_append
# Append to flag
s1="FLAG = abc"