If you'd like to be walked through the exercise, check out the Objects and Methods workshop on the Jumpstart Lab tutorials site.
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
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