diff options
Diffstat (limited to 'spec/ruby/core/env/values_at_spec.rb')
| -rw-r--r-- | spec/ruby/core/env/values_at_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/env/values_at_spec.rb b/spec/ruby/core/env/values_at_spec.rb index 87c8c7f663..4a733f4ed5 100644 --- a/spec/ruby/core/env/values_at_spec.rb +++ b/spec/ruby/core/env/values_at_spec.rb @@ -1,4 +1,5 @@ require_relative '../../spec_helper' +require_relative 'fixtures/common' describe "ENV.values_at" do before :each do @@ -28,11 +29,10 @@ describe "ENV.values_at" do end it "uses the locale encoding" do - encoding = platform_is(:windows) ? Encoding::UTF_8 : Encoding.find('locale') - ENV.values_at(ENV.keys.first).first.encoding.should == encoding + ENV.values_at(ENV.keys.first).first.encoding.should == ENVSpecs.encoding end it "raises TypeError when a key is not coercible to String" do - -> { ENV.values_at("foo", Object.new) }.should raise_error(TypeError, "no implicit conversion of Object into String") + -> { ENV.values_at("foo", Object.new) }.should.raise(TypeError, "no implicit conversion of Object into String") end end |
