aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-27 23:53:01 -0500
committerJack Nagel2014-09-27 23:53:01 -0500
commit54ac9c560af2fc4f50ba59909f2296bfe8c2ec8f (patch)
treeb6960e4a0df820c3c664015a0cb295554c7055c6 /Library
parent14594741e1310a8e96803c67d6ef7b67d28ca970 (diff)
downloadbrew-54ac9c560af2fc4f50ba59909f2296bfe8c2ec8f.tar.bz2
Revert "Add test for inreplace sub!/gsub! with hash argument"
Ruby 1.8 doesn't support this, so we don't officially support it (yet). This reverts commit 7d5eb6f5e2da42c1378fefb63fde55cae97a3909.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_inreplace.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/Library/Homebrew/test/test_inreplace.rb b/Library/Homebrew/test/test_inreplace.rb
index 5a477be48..5b226eb8d 100644
--- a/Library/Homebrew/test/test_inreplace.rb
+++ b/Library/Homebrew/test/test_inreplace.rb
@@ -87,16 +87,4 @@ class InreplaceTest < Homebrew::TestCase
s.gsub!("o", "e")
assert_equal "bee", s
end
-
- def test_sub_gsub_with_hash
- s = "foo"
- s.extend(StringInreplaceExtension)
-
- repl = { "f" => "b", "o" => "e" }
- s.sub!(/[fo]/, repl)
- assert_equal "boo", s
-
- s.gsub!(/[fo]/, repl)
- assert_equal "bee", s
- end
end