Skip to content
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

Archie Martin Airport Challenge #2507

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

archiemartini
Copy link

Your name

Archie Martin
Please write your full name here to make it easier to find your pull request.

User stories

Please list which user stories you've implemented (delete the ones that don't apply).

  • [ x] User story 1: "I want to instruct a plane to land at an airport"
  • [ x] User story 2: "I want to instruct a plane to take off from an airport and confirm that it is no longer in the airport"
  • [x ] User story 3: "I want to prevent landing when the airport is full"
  • [ x] User story 4: "I would like a default airport capacity that can be overridden as appropriate"
  • [x ] User story 5: "I want to prevent takeoff when weather is stormy"
  • [x ] User story 6: "I want to prevent landing when weather is stormy"

README checklist

Does your README contains instructions for

  • how to install,
  • how to run,
  • and how to test your code?

Here is a pill that can help you write a great README!

Archie added 5 commits April 24, 2022 14:30
…t up classes, and planes can exist in two places at once...sorry for not committing enough :(
…ests will pass regarding anything to do with landing/taking_off. I'm done for tonight.
Copy link

@K-Carty K-Carty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really enjoyed reading your code. I loved how simply you pieced together the objects and method in

@@ -0,0 +1,103 @@
require 'airport.rb'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, I appreciate your use of Single Responsibility Principle. It make the code super readable with names that makes sense.

expect(port.send(:full?)).to eq false
end
end

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good that you described the method within the class before testing it.

end

describe Plane do

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you could have used a separate new doc and spec_helper for the Plane class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants