-
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
Modify Faker::Educator, Fix #576 #803
Modify Faker::Educator, Fix #576 #803
Conversation
Maybe we should make |
Thank you for your feedback @b264. It makes sense to make an alias for |
a359def
to
a5d7731
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.
@ghbooth12 could you please update your branch with master and fix the rubocop violations?
@vbrazo Absolutely. I'm sorry for my late reply. I'll update this PR this afternoon. |
f2fcf57
to
9e67622
Compare
* Add subject, course_name, degree method for Faker::Educator (Fix faker-ruby#576) * Update educator.rb * Update educator.rb
Hello. This PR is about fixing the issue #576 by adding a method 'subject'. Additionally I have edited the
Faker::Educator.course
method. Because the existingcourse
method returns a string like "Associate Degree in Criminology". I think this is a name of degree, not a name of course. So I have renamed thecourse
method to thedegree
method. Then I have created the newcourse
method that returns something like "Criminology 201".subject
method that returns something like "Criminology", "Engineering", "Business"...course
method todegree
methodcourse
method that returns something like "Criminology 201", "Engineering 411", "Business 157"...The tests for these changes have been added and all have passed. The documentation(faker/doc/educator.md) has updated for these changes.