Commit d4cfc70
Changed files (5)
spec
features
lib/console.rb
@@ -40,4 +40,3 @@ class Console
end
end
end
-
lib/move_forward.rb
@@ -8,6 +8,6 @@ class MoveForward
end
end
def matches(item)
- 'M' == item
+ 'M' == item.upcase
end
end
lib/turn_left.rb
@@ -6,6 +6,6 @@ class TurnLeft
@rover.rotate(-90) if matches(instruction)
end
def matches(item)
- 'L' == item
+ 'L' == item.upcase
end
end
lib/turn_right.rb
@@ -6,6 +6,6 @@ class TurnRight
@rover.rotate(90) if matches(instruction)
end
def matches(item)
- 'R' == item
+ 'R' == item.upcase
end
end