Skip to content

Commit

Permalink
Work with ruby 2.3's --enable-frozen-string-literal
Browse files Browse the repository at this point in the history
These changes are the minimal ones necessary to allow Forme's specs
to pass. There may well be other changes that are required.
  • Loading branch information
jeremyevans committed Jan 28, 2016
1 parent 7ba4ad9 commit 483f747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/mock.rb
Expand Up @@ -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])
Expand Down

0 comments on commit 483f747

Please sign in to comment.