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.
This commit is contained in:
parent
14594741e1
commit
54ac9c560a
@ -87,16 +87,4 @@ class InreplaceTest < Homebrew::TestCase
|
|||||||
s.gsub!("o", "e")
|
s.gsub!("o", "e")
|
||||||
assert_equal "bee", s
|
assert_equal "bee", s
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user