summaryrefslogtreecommitdiff
path: root/spec/south_specs.rb
blob: a9ac0dd4627330f0d3cf8d0507aa545cc7b5c066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'south'

describe South do
  before do
    @sut = South.new
  end
  describe "when driving forward" do
    describe "when it is ok to move forward" do
      it "should move forward" do
        @location[:y].must_equal 0
      end
      before do
        @location = {:x => 0, :y => 1}
        @sut.forward(@location)
      end
    end
  end
end