-
Notifications
You must be signed in to change notification settings - Fork 257
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
Beverly Green - the_dmv #598
base: main
Are you sure you want to change the base?
Conversation
All tests passing through iteration 1 requirements
…y_class Functional Vehicle Registration
Written test rspec tests all passing
Drivers license feature
Rspec tests for vehicle factory passing
Dmv state facility datasets
@@ -0,0 +1,19 @@ | |||
class DMVFacilities |
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.
I think it might make more sense to call this class DMVFactory
to match the Vehicle Factory naming convention
@permit = true | ||
end | ||
|
||
def change_license_data(key) |
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.
Love this helper method! Just make sure that you are writing tests for any methods that you add 😉
def register_vehicle(vehicle) | ||
|
||
if @services.include?('Vehicle Registration') | ||
@registered_vehicles << vehicle |
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.
When a vehicle is registered, you probably also want to call the registration method on the vehicle so that the plate type is set and the registration date is updated!
No description provided.