Sha256: eb4b18a129292b011af51f7e99c3737195b206b8f5a9df74e1b5c43738138567
Contents?: true
Size: 702 Bytes
Versions: 4
Compression:
Stored size: 702 Bytes
Contents
require 'woyo/world/world' require 'woyo/world/location' require 'woyo/world/way' describe Woyo::Way do it 'accepts location for parameter context:' do wo = nil expect { wo = Woyo::Way.new(:my_id, context: Woyo::Location.new(:here)) }.to_not raise_error wo.context.should be_instance_of Woyo::Location wo.context.id.should eq :here end it 'leads from a location' do here = Woyo::Location.new(:here) door = Woyo::Way.new :door, context: here door.from.should eq here end it 'is in a world' do world = Woyo::World.new here = Woyo::Location.new :here, context: world door = Woyo::Way.new :door, context: here door.world.should eq world end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
woyo-world-0.0.3 | spec/woyo/world/way_spec.rb |
woyo-world-0.0.2 | spec/woyo/world/way_spec.rb |
woyo-world-0.0.1 | spec/woyo/world/way_spec.rb |
woyo-world-0.0.1.pre2 | spec/woyo/world/way_spec.rb |