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

Version Path
netzke-core-0.7.6 test/core_test_app/spec/core_ext_spec.rb
netzke-core-0.7.5 test/core_test_app/spec/core_ext_spec.rb
netzke-core-0.7.4 test/core_test_app/spec/core_ext_spec.rb
netzke-core-0.7.3 test/core_test_app/spec/core_ext_spec.rb
netzke-core-0.7.2 test/core_test_app/spec/core_ext_spec.rb
netzke-core-0.7.1 test/rails_app/spec/core_ext_spec.rb
netzke-core-0.6.7 test/rails_app/spec/core_ext_spec.rb
netzke-core-0.7.0 test/rails_app/spec/core_ext_spec.rb