main
 1$:.unshift(File.dirname(__FILE__) + '/../..')
 2require 'spec_helper'
 3
 4Given /^the plateau is (\d+) by (\d+)$/ do |x,y|
 5  @plateau = "#{x} #{y}"
 6end
 7
 8And /^the starting position is '(.*)'$/ do |input|
 9  @rover = input
10end
11
12And /^I move "([^\"]*)"$/ do |instructions|
13  @instructions = instructions
14end
15
16When /^I tell the rover to travel$/ do
17  @command = NavigateRover.new(@plateau, @rover, @instructions)
18end
19
20Then /^the rovers final position should be '(.*)' on the screen\.$/ do |expected|
21  @command.run.should == expected
22end