Closed BecaLParker closed 3 years ago
edgecase: planes can only take off from airports they are in
Feature tests:
irb
2.6.5 :001 > require './lib/airport.rb'
=> true
2.6.5 :002 > airport = Airport.new
=> #<Airport:0x00007f86230da218 @capacity=4, @planes_in_port=[]>
2.6.5 :003 > airport.planes_in_port
=> []
2.6.5 :004 > airport.planes_in_port.size
=> 0
(because a specific plane instance shouldn't be able to take-off if it's not at that airport)