Sha256: d1fae509300f6390f3dd0607b12b8672dd714c2ba270af576529f664feeeacc9
Contents?: true
Size: 490 Bytes
Versions: 3
Compression:
Stored size: 490 Bytes
Contents
require '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) expect(entity).to respond_to :apple end it "should not add the methods to a hash" do entity = {'apple' => 'pie'}.convert_hash_keys_to_methods(nil) expect(entity).to_not be_a_instance_of Hash end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taza-2.1.0 | spec/taza/hash_spec.rb |
taza-2.0 | spec/taza/hash_spec.rb |
taza-1.0 | spec/taza/hash_spec.rb |