diff options
| author | Jack Nagel | 2014-09-27 23:53:01 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-27 23:53:01 -0500 |
| commit | c9ee83d5fe617de1f76cbc2aa3a44511175a06b9 (patch) | |
| tree | 7d147b9544cf94a7453fc9c7aac0bea32650e1c8 | |
| parent | 7d5eb6f5e2da42c1378fefb63fde55cae97a3909 (diff) | |
| download | homebrew-c9ee83d5fe617de1f76cbc2aa3a44511175a06b9.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.
| -rw-r--r-- | Library/Homebrew/test/test_inreplace.rb | 12 |
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 |
