From 54ac9c560af2fc4f50ba59909f2296bfe8c2ec8f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 27 Sep 2014 23:53:01 -0500 Subject: [PATCH] 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. --- Library/Homebrew/test/test_inreplace.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Library/Homebrew/test/test_inreplace.rb b/Library/Homebrew/test/test_inreplace.rb index 5a477be480..5b226eb8d6 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