mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@4eec3dc
This commit is contained in:
parent
ab8345271e
commit
1243255c3a
174 changed files with 1780 additions and 426 deletions
9
spec/ruby/core/env/values_spec.rb
vendored
9
spec/ruby/core/env/values_spec.rb
vendored
|
@ -3,14 +3,7 @@ require_relative '../../spec_helper'
|
|||
describe "ENV.values" do
|
||||
|
||||
it "returns an array of the values" do
|
||||
orig = ENV.to_hash
|
||||
begin
|
||||
ENV.replace "a" => "b", "c" => "d"
|
||||
a = ENV.values
|
||||
a.sort.should == ["b", "d"]
|
||||
ensure
|
||||
ENV.replace orig
|
||||
end
|
||||
ENV.values.should == ENV.to_hash.values
|
||||
end
|
||||
|
||||
it "uses the locale encoding" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue