From 483f747cc08fdb96270229e37e09d6467332023f Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 28 Jan 2016 12:48:14 -0800 Subject: [PATCH] Work with ruby 2.3's --enable-frozen-string-literal These changes are the minimal ones necessary to allow Forme's specs to pass. There may well be other changes that are required. --- lib/rack/mock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/mock.rb b/lib/rack/mock.rb index a2fc24019..04d27a613 100644 --- a/lib/rack/mock.rb +++ b/lib/rack/mock.rb @@ -128,7 +128,7 @@ def self.env_for(uri="", opts={}) end end - empty_str = ''.force_encoding(Encoding::ASCII_8BIT) + empty_str = String.new.force_encoding(Encoding::ASCII_8BIT) opts[:input] ||= empty_str if String === opts[:input] rack_input = StringIO.new(opts[:input])