Week 3 Homework Update
Garrick found a problem with the Week 3 homework and posted in the comments for week 3. In the week 3 homework, test_add_to_metaclass should be this:
def test_add_to_the_metaclass
phil = Week3::Album.new(phil_collins)
assert !phil.singleton_methods.include?("awesome?")
# Add the singleton here!
assert phil.singleton_methods.include?("awesome?")
assert_equal(true, phil.awesome?)
end
Ruby 1.9 returns a list of symbols when you call singleton_methods, but ruby 1.8 returns a list of strings. Since we’re working with Ruby 1.8, you’ll need to update your test case to get everything working.