Sha256: ebf291ad6d2ed2aed5ff3d7a8d3c8648af7730c449e226d556b3c286559a34f2
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require_relative '../spec_helper' require 'dm-core/support/ext/array' require 'dm-core/support/mash' describe DataMapper::Ext::Array do before :all do @array = [ [ :a, [ 1 ] ], [ :b, [ 2 ] ], [ :c, [ 3 ] ] ].freeze end describe '.to_mash' do before :all do @return = DataMapper::Ext::Array.to_mash(@array) end it 'returns a Mash' do expect(@return).to be_kind_of(DataMapper::Mash) end it 'returns expected value' do expect(@return).to eq({'a' => [1], 'b' => [2], 'c' => [3]}) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-dm-core-1.3.0 | spec/unit/array_spec.rb |
sbf-dm-core-1.3.0.beta | spec/unit/array_spec.rb |