Skip to content

Commit

Permalink
Added SingularSiegler quotes (#1129)
Browse files Browse the repository at this point in the history
* added my contribution to ReadMe contents section

* added md file for docs - singular siegler

* added singular_siegler.rb

* added quotes file for singular siegler

* added test file for singular siegler
  • Loading branch information
splashinn authored and vbrazo committed May 21, 2018
1 parent db8cdc7 commit e0e8594
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Contents
- [Faker::Seinfeld](doc/seinfeld.md)
- [Faker::SiliconValley](doc/silicon_valley.md)
- [Faker::Simpsons](doc/simpsons.md)
- [Faker::SingularSiegler](doc/singular_siegler.md)
- [Faker::SlackEmoji](doc/slack_emoji.md)
- [Faker::Source](doc/source.md)
- [Faker::Space](doc/space.md)
Expand Down
5 changes: 5 additions & 0 deletions doc/singular_siegler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Faker::SingularSiegler

```ruby
Faker::SingularSiegler.quote #=> "Texas!"
```
9 changes: 9 additions & 0 deletions lib/faker/singular_siegler.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Faker
class SingularSiegler < Base
class << self
def quotes
fetch('singular_siegler.quotes')
end
end
end
end
37 changes: 37 additions & 0 deletions lib/locales/en/singular_siegler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
en:
faker:
singular_siegler:
quotes: [
"Texas!",
"Come on now",
"Turd gone wrong",
"I want my 5$ back",
"I tell you what",
"My buddy Harlen",
"Goin' hog huntin'",
"C'mon Naomi",
"Might be DQ time",
"That goddamn Datamate",
"That damn gimble",
"That Barbala couldn't fly his way out of a wet paper bag",
"So I was walking Oscar",
"How 'bout them Cowboys",
"Always the last one to the party",
"Standby",
"No one tells me shit",
"My boss gonna fire me",
"That damn Bill Stull",
"Like a red-headed stepchild",
"Y'all never listen to me",
"It's around here somewhere",
"Reminds me of my old girlfriend Olga Goodntight",
"Let me tell ya",
"I got that scurvy",
"Got depression, Smith and Wessen",
"I'm washing my hands of it",
"Yup",
"Contact the tower",
"That damn diabetes",
"That's messed up",
"I want my damn cart back"
]
13 changes: 13 additions & 0 deletions test/test_faker_singular_siegler.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 TestFakerSingularSiegler < Test::Unit::TestCase

def setup
@tester = Faker::SingularSiegler
end

def test_quote
assert @tester.quotes.match(/\w/)
end

end

0 comments on commit e0e8594

Please sign in to comment.