summaryrefslogtreecommitdiff
path: root/spec/ruby/core/env/values_at_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/env/values_at_spec.rb')
-rw-r--r--spec/ruby/core/env/values_at_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/core/env/values_at_spec.rb b/spec/ruby/core/env/values_at_spec.rb
index ee970e5f65..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,10 +29,10 @@ describe "ENV.values_at" do
end
it "uses the locale encoding" do
- ENV.values_at(ENV.keys.first).first.encoding.should == Encoding.find('locale')
+ 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