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

introduce Aqua Teen Hunger Force characters #1037

Merged
merged 1 commit into from
Oct 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Contents
- [Faker::Address](doc/address.md)
- [Faker::Ancient](doc/ancient.md)
- [Faker::App](doc/app.md)
- [Faker::AquaTeenHungerForce](doc/aqua_teen_hunger_force.md)
- [Faker::Avatar](doc/avatar.md)
- [Faker::Bank](doc/bank.md)
- [Faker::Beer](doc/beer.md)
Expand Down
4 changes: 4 additions & 0 deletions doc/aqua_teen_hunger_force.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Faker::AquaTeenHungerForce

```ruby
Faker::AquaTeenHungerForce.character #=> "Master Shake"
9 changes: 9 additions & 0 deletions lib/faker/aqua_teen_hunger_force.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Faker
class AquaTeenHungerForce < Base
class << self
def character
fetch('aqua_teen_hunger_force.character')
end
end
end
end
4 changes: 4 additions & 0 deletions lib/locales/en/aqua_teen_hunger_force.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
en:
faker:
aqua_teen_hunger_force:
character: ["Carl Brutananadilewski", "Cybernetic Ghost of Christmas Past from the Future", "D.P", "Dr. Weird", "Dr. Wongburger", "Emory", "Err", "Frylock", "George Lowe", "Ignignokt", "Master Shake", "MC Pee Pants", "Meatwad", "Oglethorpe", "Skeeter", "Steve", "Turkatron"]
13 changes: 13 additions & 0 deletions test/test_faker_aqua_teen_hunger_force.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestFakerAquaTeenHungerForce < Test::Unit::TestCase

def setup
@tester = Faker::AquaTeenHungerForce
end

def test_character
assert @tester.character.match(/\w/)
end

end