aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_inreplace.rb
diff options
context:
space:
mode:
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"