summaryrefslogtreecommitdiff
path: root/spec/ruby/core/env/to_a_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/env/to_a_spec.rb')
-rw-r--r--spec/ruby/core/env/to_a_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/ruby/core/env/to_a_spec.rb b/spec/ruby/core/env/to_a_spec.rb
index 39e3877b48..2b1649281f 100644
--- a/spec/ruby/core/env/to_a_spec.rb
+++ b/spec/ruby/core/env/to_a_spec.rb
@@ -6,7 +6,10 @@ describe "ENV.to_a" do
a = ENV.to_a
a.is_a?(Array).should == true
a.size.should == ENV.size
- ENV.each_pair { |k, v| a.should include([k, v])}
+ a.each { |k,v| ENV[k].should == v }
+
+ a.first.should.is_a?(Array)
+ a.first.size.should == 2
end
it "returns the entries in the locale encoding" do