Sha256: 891e2d86bfee5df96dc36cbdfc76b31f2a47e5380dc3c5181734b6c753b890bd

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe Hash do
  it 'should respond to all the new methods' do
    Hash.new.should respond_to(*%w(with_defaults with_defaults! nested_find deep_merge! nested_hash merge_nested_hash!))
  end

  it 'should return a hash from with_defaults' do
    Hash.new.with_defaults(:foo => :bar).should be_a_kind_of(Hash)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
darkhelmet-darkext-0.11.0 spec/hash_spec.rb