Sha256: e582dbb853c015c543e6a5fe0e9f538fa7dad6fb10c02fb86d9862b49cf23d26

Contents?: true

Size: 417 Bytes

Versions: 5

Compression:

Stored size: 417 Bytes

Contents

require 'woyo/world/world'

describe Woyo::World do

  it 'has attributes :name, :description, :start' do
    expected_attrs = [:name,:description,:start]
    Woyo::World.attributes.sort.should eq expected_attrs.sort 
  end

  it 'initializes with no locations' do
    Woyo::World.new.locations.should be_empty
  end

  it 'initializes with no characters' do
    Woyo::World.new.characters.should be_empty
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
woyo-world-0.0.6 spec/woyo/world/world_spec.rb
woyo-world-0.0.5 spec/woyo/world/world_spec.rb
woyo-world-0.0.4 spec/woyo/world/world_spec.rb
woyo-world-0.0.3 spec/woyo/world/world_spec.rb
woyo-world-0.0.2 spec/woyo/world/world_spec.rb