1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/env/keys_spec.rb
2019-11-30 21:26:52 +01:00

14 lines
296 B
Ruby

require_relative '../../spec_helper'
describe "ENV.keys" do
it "returns an array of the keys" do
ENV.keys.should == ENV.to_hash.keys
end
it "returns the keys in the locale encoding" do
ENV.keys.each do |key|
key.encoding.should == Encoding.find('locale')
end
end
end