summaryrefslogtreecommitdiff
path: root/spec/ruby/core/env/each_key_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-10-26 20:53:01 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-10-26 20:53:01 +0200
commit664e96b1de816c813c29f61e16a2031a7af7ba86 (patch)
tree7f4691847cd6b3282812eea7e2be3758e08d1433 /spec/ruby/core/env/each_key_spec.rb
parent3eb0d50c0baae916f4486c264605b18e77bee0dc (diff)
Update to ruby/spec@28a728b
Diffstat (limited to 'spec/ruby/core/env/each_key_spec.rb')
-rw-r--r--spec/ruby/core/env/each_key_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/core/env/each_key_spec.rb b/spec/ruby/core/env/each_key_spec.rb
index 294bf39912..5c5cf4f80e 100644
--- a/spec/ruby/core/env/each_key_spec.rb
+++ b/spec/ruby/core/env/each_key_spec.rb
@@ -19,7 +19,9 @@ describe "ENV.each_key" do
end
it "returns an Enumerator if called without a block" do
- ENV.each_key.should be_an_instance_of(Enumerator)
+ enum = ENV.each_key
+ enum.should be_an_instance_of(Enumerator)
+ enum.to_a.should == ENV.keys
end
it "returns keys in the locale encoding" do