Instantly share code, notes, and snippets.

@daguar /Gemfile Secret
Created Jan 6, 2017

Embed
What would you like to do?

marsroverkata

We're going to build the API for a Mars rover using a test-driven approach. Some things that the rover could do:

  • know which compass direction it is facing
  • know where it is relative to its landing position
  • move forward
  • turn left and right
  • sense whether there is an obstacle
  • refuse to move forward if the path is blocked
  • follow a list of single-character commands (f,l,r)
  • move backward (b)
  • anything else you think would be interesting
source "https://rubygems.org"
gem 'rspec'
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
PLATFORMS
ruby
DEPENDENCIES
rspec
BUNDLED WITH
1.12.5
class Rover
end
require_relative "rover"
RSpec.describe Rover do
it "should assert intrinsic truthiness" do
expect(true).to eq(true)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment