Sha256: 4cac636e84566a05a7c2748a1f2a8fc412d59805331004c680e753b7c5344d47

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require 'spec/spec_helper'
require 'taza/entity'

describe Taza::Entity do
  it "should add methods for hash string keys" do
    entity = Taza::Entity.new({'apple' => 'pie'},nil)
    entity.should respond_to(:apple)
  end

  it "should be accessible like a hash(foo[:bar])" do
    entity = Taza::Entity.new({:apple => 'pie'},nil)
    entity[:apple].should eql('pie')
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taza-0.8.5 spec/entity_spec.rb