mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@4ce9f41
This commit is contained in:
parent
267bed0cd9
commit
727c97da19
108 changed files with 1325 additions and 270 deletions
4
spec/ruby/core/env/fetch_spec.rb
vendored
4
spec/ruby/core/env/fetch_spec.rb
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue