Revert "fix string interpolation error when transforming characters to UTF8 in the configuration compiler"

This reverts commit 65c789a24c.

Fixes #3264
This commit is contained in:
Pere Urbon-Bayes 2015-05-18 18:01:21 +02:00 committed by Jordan Sissel
parent 65c789a24c
commit 26f6be3aed
2 changed files with 1 additions and 14 deletions

View file

@ -300,7 +300,7 @@ module LogStash; module Config; module AST
module Unicode module Unicode
def self.wrap(text) def self.wrap(text)
return "('#{text.force_encoding(Encoding::UTF_8)}')" return "(" + text.force_encoding(Encoding::UTF_8).inspect + ")"
end end
end end

View file

@ -106,16 +106,3 @@ describe LogStashConfigParser do
end end
end end
end end
describe LogStash::Config::AST do
context "when doing unicode transformations" do
subject(:unicode) { LogStash::Config::AST::Unicode }
it "convert newline characters without modifying them" do
expect(unicode.wrap("\\n")).to eq("('\\n')")
end
end
end