Sha256: dd25297c785b54233d0d7d4aa3909c41af42842106cd5d52c21ba4e4dc0a8c66
Contents?: true
Size: 548 Bytes
Versions: 18
Compression:
Stored size: 548 Bytes
Contents
require 'spec_helper' describe Hashie::Extensions::MergeInitializer do class MergeInitializerHash < Hash; include Hashie::Extensions::MergeInitializer end subject{ MergeInitializerHash } it 'should initialize fine with no arguments' do subject.new.should == {} end it 'should initialize with a hash' do subject.new(:abc => 'def').should == {:abc => 'def'} end it 'should initialize with a hash and a default' do h = subject.new({:abc => 'def'}, 'bar') h[:foo].should == 'bar' h[:abc].should == 'def' end end
Version data entries
18 entries across 16 versions & 5 rubygems