aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/env/fetch_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/env/fetch_spec.rb')
-rw-r--r--spec/ruby/core/env/fetch_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/env/fetch_spec.rb b/spec/ruby/core/env/fetch_spec.rb
index f3af6f3dc2..b2e7a88cab 100644
--- a/spec/ruby/core/env/fetch_spec.rb
+++ b/spec/ruby/core/env/fetch_spec.rb
@@ -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