Skip to content

Commit

Permalink
Fix Educator methods returning bad data. (faker-ruby#1860)
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
connorshea authored and vbrazo committed Dec 10, 2019
1 parent aa9e4c7 commit fe88ba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/locales/en/educator.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
en:
faker:
educator:
name:
school_name:
- Bluemeadow
- Brighthurst
- Brookville
Expand All @@ -23,11 +23,11 @@ en:
- High School
- Secondary College
university:
- "#{name} #{Educator.tertiary.university_type}"
- "#{Educator.school_name} #{Educator.tertiary.university_type}"
secondary_school:
- "#{name} #{secondary}"
- "#{Educator.school_name} #{secondary}"
campus:
- "#{name} Campus"
- "#{Educator.school_name} Campus"
subject:
- Applied Science (Psychology)
- Architectural Technology
Expand Down

0 comments on commit fe88ba6

Please sign in to comment.