Skip to content

Commit

Permalink
Add Faker::AquaTeenHungerForce (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethagnawl authored and stympy committed Oct 13, 2017
1 parent b174b54 commit 657162a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
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::BackToTheFuture](doc/back_to_the_future.md)
- [Faker::Bank](doc/bank.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

0 comments on commit 657162a

Please sign in to comment.