mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
14 lines
296 B
Ruby
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
|