1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-12-27 17:35:32 +01:00
parent 267bed0cd9
commit 727c97da19
108 changed files with 1325 additions and 270 deletions

View file

@ -1,5 +1,6 @@
require_relative '../../spec_helper'
require_relative '../../shared/hash/key_error'
require_relative 'fixtures/common'
describe "ENV.fetch" do
before :each do
@ -56,8 +57,7 @@ describe "ENV.fetch" do
end
it "uses the locale encoding" do
encoding = platform_is(:windows) ? Encoding::UTF_8 : Encoding.find('locale')
ENV["foo"] = "bar"
ENV.fetch("foo").encoding.should == encoding
ENV.fetch("foo").encoding.should == ENVSpecs.encoding
end
end