Created the Bar class which initializes with a name, empty menu_items array, and default happy_discount of 0. Created a method to add items to the menu_item array. Created the MenuItem class which initializes with a name and price.
Added a getter method happy_discount which returns 0 if it isn't happy hour and returns the set discount if it is. Added the happy_hour? method to check whether the current time is happy hour (3:00 to 4:00pm). Added a setter method happy_discount= so that it is only possible to set the discount to a number between 0 and 1. If the given number is below 0, it sets it to 0. I the given number is above 1, it sets it to 1.
Added tests to check whether it returns true if it is happy hour, and false otherwise. Added a series of tests within a context of normal hours to check method behavior under that condition. Added a similar series of tests under a context of happy hour.