-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baljit's branch for airport_challenge #2495
base: main
Are you sure you want to change the base?
Conversation
… confirm completed
I took inspiration from Jordan Manu's README.md to write my README.md
|
||
describe '# landing' do | ||
|
||
it 'has a Default capcity' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small typo, capacity
lib/airport.rb
Outdated
def takeoff(plane) | ||
fail 'Due to stormy weather no landing allowed' if stormy? | ||
fail 'Plane is not at the airport' if plane.in_flight? | ||
@planes.delete(plane) | ||
'plane has taken off' | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
takeoff method should change plane's in_flight variable to true
lib/airport.rb
Outdated
require 'weather' | ||
require 'plane' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider using require_relative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do that and resubmit the pull request
as per @mcsuGH comments, I have updated require to require_relative in all the files and added updating planes in_flight status takeoff module |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall written well & easy to read through.
Baljit Singh Rakhra
User stories
Please list which user stories you've implemented (delete the ones that don't apply).
README checklist
Does your README contains instructions for
Here is a pill that can help you write a great README!