spec/woyo/world/character_spec.rb in woyo-world-0.0.1 vs spec/woyo/world/character_spec.rb in woyo-world-0.0.2
- old
+ new
@@ -1,9 +1,14 @@
require 'woyo/world/character'
require 'woyo/world/world'
require 'woyo/world/location'
describe Woyo::Character do
+
+ it 'has attributes' do
+ expected_attrs = [:name,:description]
+ Woyo::Character.attributes.sort.should eq expected_attrs.sort
+ end
it 'accepts world for parameter context:' do
wo = nil
expect { wo = Woyo::Character.new(:my_id, context: Woyo::World.new) }.to_not raise_error
wo.context.should be_instance_of Woyo::World