Sha256: ce592f4b80631c99369128b3a9c6c85aaf246ce137f74f188cd82d4b7ae6b877
Contents?: true
Size: 394 Bytes
Versions: 13
Compression:
Stored size: 394 Bytes
Contents
require 'spec/spec_helper' describe 'Hash Extensions' do it "should add methods for hash keys to some instance" do entity = {'apple' => 'pie'}.convert_hash_keys_to_methods(nil) entity.should respond_to(:apple) end it "should not add the methods to a hash" do entity = {'apple' => 'pie'}.convert_hash_keys_to_methods(nil) entity.should_not be_a_instance_of(Hash) end end
Version data entries
13 entries across 13 versions & 3 rubygems