Sha256: 8dab1a77daf2600d9df98286a86f51bc2f173484cce55295cc92b60258ae2265
Contents?: true
Size: 374 Bytes
Versions: 8
Compression:
Stored size: 374 Bytes
Contents
describe "Core extensions" do it "should properly do deep_each_pair" do res = {} { :one => 1, :two => {:three => 3}, :nine => [ {:four => 4, :five => {:six => 6}}, {:seven => [{:eight => 8}]} ] }.deep_each_pair{ |k,v| res[k] = v } res.should == {:one => 1, :three => 3, :four => 4, :six => 6, :eight => 8} end end
Version data entries
8 entries across 8 versions & 1 rubygems