aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/env/shift_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/env/shift_spec.rb')
-rw-r--r--spec/ruby/core/env/shift_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/env/shift_spec.rb b/spec/ruby/core/env/shift_spec.rb
index 49d98c3729..b6c139dc29 100644
--- a/spec/ruby/core/env/shift_spec.rb
+++ b/spec/ruby/core/env/shift_spec.rb
@@ -1,4 +1,5 @@
require_relative '../../spec_helper'
+require_relative 'fixtures/common'
describe "ENV.shift" do
it "returns a pair and deletes it" do
@@ -42,10 +43,9 @@ describe "ENV.shift" do
it "uses the locale encoding if Encoding.default_internal is nil" do
Encoding.default_internal = nil
- encoding = platform_is(:windows) ? Encoding::UTF_8 : Encoding.find('locale')
pair = ENV.shift
- pair.first.encoding.should equal(encoding)
- pair.last.encoding.should equal(encoding)
+ pair.first.encoding.should equal(ENVSpecs.encoding)
+ pair.last.encoding.should equal(ENVSpecs.encoding)
end
it "transcodes from the locale encoding to Encoding.default_internal if set" do