Sha256: 446892cc6d09bb482028f912837f779ad789d75695153b4543974aa255b96d25
Contents?: true
Size: 489 Bytes
Versions: 7
Compression:
Stored size: 489 Bytes
Contents
require 'spec/spec_helper' require 'taza/entity' require 'extensions/hash' # This is too tightly coupled to Taza::Entity 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
7 entries across 7 versions & 3 rubygems