-
Notifications
You must be signed in to change notification settings - Fork 3.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
Corrected other occurrences of spelling vehicle spelling error, deprecated Space launch_vehicule #1634
Conversation
Siyanda
commented
Jun 17, 2019
- bundle exec rubocop
- Deprecated launch_vehicule before removing it.
extend Gem::Deprecate | ||
|
||
def launch_vehicule | ||
Faker::Space.launch_vehicule |
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.
it should be Faker::Space.launch_vehicle
, otherwise it will crash
Faker::Space.launch_vehicule | ||
end | ||
|
||
deprecate :launch_vehicule, 'Faker::Space.launch_vehicule', 2019, 06 |
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.
It should be
deprecate :launch_vehicule, 'Faker::Space.launch_vehicle', 2019, 06
end | ||
|
||
def launch_vehicule | ||
assert @tester.character.match(/\w+/) |
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.
copy and 🍝
it should be @tester.launch_vehicule.match
:)
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.
You got me there, It's my first time deprecating a method, so I searched for a similar commit and copy paste
In this case, you don't need to create a new file because I'd suggest deprecating the method inside the same faker object. You'd end up having a |
69291b2
to
5cc660c
Compare
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've made a few changes, and I'll merge this PR to our v2 branch. Since this is a breaking change, it should go there.
Thanks for renaming this typo 👍
…cated Space launch_vehicule (faker-ruby#1634) * deperecated misspelled launch_vehicule and removed test * corrected other occurrences of spelling vehicle spelling error and added to tests * deprecation and tests for Space.launch_vehicle * Remove unnecessary test
…cated Space launch_vehicule (faker-ruby#1634) * deperecated misspelled launch_vehicule and removed test * corrected other occurrences of spelling vehicle spelling error and added to tests * deprecation and tests for Space.launch_vehicle * Remove unnecessary test