Code keeps telling me I have not added the movie to the hash, could someone help?

movies = {
BubbleBoy: 4,
puts "What would you like to do?"
puts "-- Type 'add' to add a movie."
puts "-- Type 'update' to update a movie."
puts "-- Type 'display' to display all movies."
puts "-- Type 'delete' to delete a movie."

choice = gets.chomp

case choice

when "add"
puts "What is the title to the movie?"
title = gets.chomp
puts "What is the rating (0-4)?"
rating = gets.chomp
movies[title] = rating
puts "#{title} has been added with a rating of #{rating}"
when "update"
puts "Updated!"
when "display"
puts "Movies!"
when "delete"
puts "Deleted!"
puts "Error!"


I tried your code and I passed the exercise, try refreshing the page or emptying the cache of your browser.


you have to test it out by adding a movie.