Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tests that our print inventory is in the right format
- def test_print_inventory()
- msg = "Driver 1 obtained 0 books!\nDriver 1 obtained 1 dinosaur toy!\nDriver 1 attended 4 classes!\n"
- driver = Driver.new(1, init_city())
- def driver.print_inventory; puts "Driver 1 obtained 0 books!\nDriver 1 obtained 1 dinosaur toy!\nDriver 1 attended 4 classes!\n" end
- assert_output (msg) {driver.print_inventory}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement