Conversation
…are now instantiated when Hotel is instantiated. Tests not yet updated.
HotelWhat We're Looking For
Design | |
| @jan3 = Date.new(2020, 1, 3) | ||
| @jan4 = Date.new(2020, 1, 4) | ||
| @jan5 = Date.new(2020, 1, 5) | ||
| @test_res = @test_hotel.new_reservation(@test_room, @jan2, @jan4) |
There was a problem hiding this comment.
These dates are a little to close together. How will you test that a range is completely contained when your res will have to start or end on the same day?
| STANDARD_RATE = 200 | ||
|
|
||
| module BookingSystem | ||
| class Room |
There was a problem hiding this comment.
Big design thought: What do you get from a Room that you couldn't get from a Hash of Arrays?
This implementation is totally valid, but it's an interesting thought exercise!
Hotel
Congratulations! You're submitting your assignment!
Comprehension Questions