Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8476928c5c
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.372 kb
require 'spec_helper'
describe RubyWarrior::Abilities::DistanceOf do
before(:each) do
@position = stub
@distance = RubyWarrior::Abilities::DistanceOf.new(stub(:position => @position, :say => nil))
end
it "should return distance from stairs" do
@position.stubs(:distance_of).with(:space).returns(5)
@distance.perform(:space).should == 5
end
end
Jump to Line
Something went wrong with that request. Please try again.