Nght at the movies - DISPLAY


#1

Seems there is some issue with the interpreter in display module. I have checked the spacing and all but still getting error "It looks like your puts does not include 'Memento: 3'"

Here is the code:
movies = {
'Memento'=>'3'
}

puts "Choose one of below options"
puts "Add Movie - type add"
puts "Update movie - type update"
puts "Display Movie - type display"
puts "Delete Movie - type delete"
print "Enter Choice : "
choice=gets.chomp
case choice
when "add"
puts "Enter movie name"
title=gets.chomp
puts "Enter rating"
rating=gets.chomp
puts movies[title.to_sym].nil
if movies[title.to_sym].nil?
movies[title.to_sym]=rating.to_i
puts "Added!"
else
puts "Movie already exists"
end
when "update"
puts "Enter movie name"
title=gets.chomp

    if movies[title].nil?
        puts "Movie does not exist in DB"
    else
        puts "Enter the new rating"
        movies[title]=gets.chomp
    end
when "display"
    movies.each do |movie, rating| 
        puts "#{movie}: #{rating}"
    end
when "delete"
    puts "Deleted!"
else
    puts "Error!"

end