diff options
| author | mo k <mo@mokhan.ca> | 2012-02-12 14:30:03 -0700 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-02-12 14:30:03 -0700 |
| commit | ae2e14fd5b02bb495be0a270aae7235a14ba67fe (patch) | |
| tree | 03749372b5914b3045ad7e2f03ccc78eef387ef7 /spec | |
| parent | ccbc65bd01a9c460539e936cfbc5eba8f97c0104 (diff) | |
remove Direction class.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/rover_specs.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/rover_specs.rb b/spec/rover_specs.rb index a54e2c2..9dc73d0 100644 --- a/spec/rover_specs.rb +++ b/spec/rover_specs.rb @@ -2,7 +2,8 @@ require 'rover' describe Rover do def create_sut(heading, x = 0, y = 0) - Rover.new heading,{ :x =>x,:y => y } + directions = {:north => North.new, :east => East.new, :west => West.new, :south => South.new} + Rover.new directions[heading],{ :x =>x,:y => y } end describe "when facing north" do |
