Skip to content

Instantly share code, notes, and snippets.

@daguar

daguar/Gemfile Secret

Created January 6, 2017 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daguar/bad5ecdc2ca311bbd33b053ea332aba4 to your computer and use it in GitHub Desktop.
Save daguar/bad5ecdc2ca311bbd33b053ea332aba4 to your computer and use it in GitHub Desktop.

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