Practicing methods and objects.
Clone this repository:
$ git clone [email protected]:JumpstartLab/halloween.git
If you'd like to be walked through the exercise, check out the Objects and Methods workshop on the Jumpstart Lab tutorials site.
Check out the exercise-1 branch:
$ git checkout -t origin/exercise-1
Make the tests pass in the following sequence:
test/candy_test.rb
test/bag_test.rb
test/costume_test.rb
test/trick_or_treater_test.rb
Run a test file by calling it with ruby
:
$ ruby test/bag_test.rb
Check out the exercise-2 branch:
$ git checkout -t origin/exercise-2
Each object has become a little bit more complex.
Make the tests pass in the following sequence:
test/candy_test.rb
test/bag_test.rb
test/costume_test.rb
test/trick_or_treater_test.rb