diff options
Diffstat (limited to 'spec/ruby/core/env/fetch_spec.rb')
-rw-r--r-- | spec/ruby/core/env/fetch_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/core/env/fetch_spec.rb b/spec/ruby/core/env/fetch_spec.rb index ef8f0a4ed3..f3af6f3dc2 100644 --- a/spec/ruby/core/env/fetch_spec.rb +++ b/spec/ruby/core/env/fetch_spec.rb @@ -56,7 +56,8 @@ 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.find('locale') + ENV.fetch("foo").encoding.should == encoding end end |