summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-02-12 14:30:03 -0700
committermo k <mo@mokhan.ca>2012-02-12 14:30:03 -0700
commitae2e14fd5b02bb495be0a270aae7235a14ba67fe (patch)
tree03749372b5914b3045ad7e2f03ccc78eef387ef7 /spec
parentccbc65bd01a9c460539e936cfbc5eba8f97c0104 (diff)
remove Direction class.
Diffstat (limited to 'spec')
-rw-r--r--spec/rover_specs.rb3
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