aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/env/values_spec.rb
blob: 919d7ffb7c4de18e49eedaa7feb4de3279432f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative '../../spec_helper'

describe "ENV.values" do

  it "returns an array of the values" do
    ENV.values.should == ENV.to_hash.values
  end

  it "uses the locale encoding" do
    ENV.values.each do |value|
      value.encoding.should == Encoding.find('locale')
    end
  end
end