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

Version Path
bret-watircraft-0.4.0 spec/hash_spec.rb
bret-watircraft-0.4.1 spec/hash_spec.rb
bret-watircraft-0.4.2 spec/hash_spec.rb
bret-watircraft-0.4.3 spec/hash_spec.rb
bret-watircraft-0.4.4 spec/hash_spec.rb
bret-watircraft-0.4.5 spec/hash_spec.rb
bret-watircraft-0.5.0 spec/hash_spec.rb
scudco-taza-0.8.1 spec/hash_spec.rb
scudco-taza-0.8.3 spec/hash_spec.rb
scudco-taza-0.8.4 spec/hash_spec.rb
taza-0.8.4 spec/hash_spec.rb
taza-0.8.2 spec/hash_spec.rb
taza-0.8.3 spec/hash_spec.rb