Week 1 Assesement - Craft Academy.
- Create a new folder called
cars
and inside of that folder, create a file calledcar.rb
with:
- a class Car
- a method to "paint" a car a new color.
- Open irb. Load your 'car.rb' file. Create an instance of a
Car
and change its color. - Create a unit test for our
Car
class to test our "painting" method. - A car should have a driver. Create an
instance_double
Driver
. Write a second test for this and make it pass.
Ruby - The worlds best programming language.
RSPEC - Making TDD Productive and Fun.
- George Tomaras - raptorf1
Kudos to PurpleBooth for the README template https://gist.github.com/PurpleBooth/109311bb0361f32d87a2