Week 1, day 7

Work continues on the Airport Challenge. I'm mostly happy with my first iteration and am fairly confident about my code review tomorrow morning. This was a an exercise is perfect syntax, brought to you by Rubocop.

 1 Running RuboCop...
 2 Inspecting 7 files
 3 .......
 4 7 files inspected, no offenses detected
 5 Airport
 6   knows when a plane is in the air
 7   knows when a plane is in the airport
 8   can order a plane to take off
 9     should respond to #order_plane_takeoff
10   can respond to a plane wanting to land
11     should respond to #landing_permission
12   traffic control
13     a plane cannot land if the airport is full
14   weather conditions
15     can be both sunny and stormy
16     a plane cannot land when it is stormy
17     a plane cannot takeoff when it is stormy
18 Grand Finale
19   6 planes can be created
20   airport knows planes are in the air
21   6 planes can land at specified airport
22   airport knows planes are in the airport
23   plane is denied landing permission when airport is full
24   6 landed planes have status: landed
25   after all 6 planes takeoff there are no more landed planes
26   after all 6 planes takeoff their status is 'flying'
27 Plane
28   has a 'flying' status when created
29   is located in the air when created
30   can 'request to land' at airport
31   responds to 'land'
32   has a status of 'landed' after landing
33   does not respond to 'land' after landing
34   responds to 'takeoff'
35   can 'request to takeoff'
36   changes its status to 'flying' after takeoff
37   does not respond to 'takeoff' after takeoff
38 Finished in 0.02523 seconds (files took 0.40916 seconds to load)
39 26 examples, 0 failures

This afternoon our cohort had a Google Hangout, very useful to share knowledge amongst eachother. I continue to learn a lot from everyone, today I learned that I'm an idiot, I don't even know to instantiate a class in IRB before calling its methods! I could've sworn I knew that yesterday...

You may view my airport-challenge repository and review the code yourself at My Github Repo for the Airport-Challenge

Written on March 22, 2015