summaryrefslogtreecommitdiff
path: root/spec/north_specs.rb
blob: da3e41012618c089f5c6257c5c99c1263229909a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'north'

describe North do
  before(:each) do
    @sut = North.new
  end
  describe "when moving forward" do
    it "should move to the next position" do
      @location[:y].must_equal 4
    end
    before do
      @location = {:x => 0, :y => 3}
      @sut.forward(@location)
    end
  end
end