Skip to content

Commit

Permalink
Update educator.rb (#755)
Browse files Browse the repository at this point in the history
Change `fetch('educator.name')` to `parse('educator.name')`. This is more in line with other fakers, and allows localizations to define other patterns for names.
  • Loading branch information
huyderman authored and stympy committed Dec 17, 2016
1 parent f1098f7 commit 7f5e658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/faker/educator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ class Educator < Base

class << self
def university
"#{fetch('educator.name')} #{fetch('educator.tertiary.type')}"
"#{parse('educator.name')} #{fetch('educator.tertiary.type')}"
end

def course
"#{fetch('educator.tertiary.course.type')} #{fetch('educator.tertiary.course.subject')}"
end

def secondary_school
"#{fetch('educator.name')} #{fetch('educator.secondary')}"
"#{parse('educator.name')} #{fetch('educator.secondary')}"
end

def campus
"#{fetch('educator.name')} Campus"
"#{parse('educator.name')} Campus"
end
end
end
Expand Down

0 comments on commit 7f5e658

Please sign in to comment.