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

Fix Educator methods returning bad data. #1860

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

connorshea
Copy link
Member

Issue#

Fixes #1857.

Description:

name is already registered on classes in Ruby, so it just returns Faker::Educator instead of a value from the name list. This fixes the problem by renaming the key to school_name.

`name` is already registered on classes in Ruby, so
it just returns Faker::Educator instead of a value from the name list.

Fix the problem by renaming the key to school_name.
Copy link
Member

@vbrazo vbrazo left a comment

Choose a reason for hiding this comment

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

Good catch 👍

@vbrazo vbrazo merged commit a1c6729 into faker-ruby:master Dec 10, 2019
@connorshea connorshea deleted the fix-faker-educator branch December 10, 2019 06:15
michebble pushed a commit to michebble/faker that referenced this pull request Feb 16, 2020
`name` is already registered on classes in Ruby, so
it just returns Faker::Educator instead of a value from the name list.

Fix the problem by renaming the key to school_name.
davidmorton0 pushed a commit to davidmorton0/faker that referenced this pull request Jul 12, 2021
`name` is already registered on classes in Ruby, so
it just returns Faker::Educator instead of a value from the name list.

Fix the problem by renaming the key to school_name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Faker::Educator.unique.campus returns single value since 2.8.1
2 participants