Skip to content

Commit

Permalink
Added remaining initial mars rover tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ColumODonovann committed Sep 8, 2023
1 parent 88be96e commit 860410f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/mars_rovers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
expect(mars_rover.direction).to eq 'N'
end

it 'has a starting position of (1,2) and a facing direction of S'
it 'has a starting position of (1,2) and a facing direction of S' do
mars_rover = MarsRover.new(1, 2, 'S')

it 'does not have a starting direction of (1,4)'
expect(mars_rover.point).to eq OpenStruct.new(x: 1, y: 2)
expect(mars_rover.direction).to eq 'S'
end
end

0 comments on commit 860410f

Please sign in to comment.