-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding Supernatural Tv Show to Faker * Adding the last new line to the supernatural.yml file * Fixing the last new line to the supernatural.yml file
- Loading branch information
Showing
5 changed files
with
218 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Faker::TvShows::Supernatural | ||
|
||
```ruby | ||
Faker::TvShows::Supernatural.character #=> "Sam Winchester" | ||
Faker::TvShows::Supernatural.creature #=> "Vampire" | ||
Faker::TvShows::Supernatural.weapon #=> "Colt" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
class TvShows | ||
class Supernatural < Base | ||
class << self | ||
## | ||
# Produces the name of a character from Supernatural. | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::TvShows::Supernatural.character #=> "Dean Winchester" | ||
# | ||
# @faker.version next | ||
def character | ||
fetch('supernatural.character') | ||
end | ||
|
||
## | ||
# Produces the name of a hunted creature. | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::TvShows::Supernatural.creature #=> "Demon" | ||
# | ||
# @faker.version next | ||
def creature | ||
fetch('supernatural.creature') | ||
end | ||
|
||
## | ||
# Produces the name of a weapon used by the hunters. | ||
# | ||
# @return [String] | ||
# | ||
# @example | ||
# Faker::TvShows::Supernatural.weapon #=> "Colt" | ||
# | ||
# @faker.version next | ||
def weapon | ||
fetch('supernatural.weapon') | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
en: | ||
faker: | ||
supernatural: | ||
character: | ||
- Abaddon | ||
- Adam Milligan | ||
- Alastair | ||
- Alex Jones | ||
- Amelia Richardson | ||
- Anna Milton | ||
- Arthur Ketch | ||
- Ash | ||
- Asmodeus | ||
- Azazel | ||
- Balthazar | ||
- Becky Rosen | ||
- Bela Talbot | ||
- Belphegor | ||
- Ben Braeden | ||
- Benny Lafitte | ||
- Bess Fitzgerald | ||
- Bobby Singer | ||
- Castiel | ||
- Charlie Bradbury | ||
- Christian Campbell | ||
- Claire Novak | ||
- Cole Trenton | ||
- Constance Welch | ||
- Crowley | ||
- Dagon | ||
- Dean Winchester | ||
- Death | ||
- Doctor Hess | ||
- Donatello Redfield | ||
- Donna Hanscum | ||
- Dr. Gaines | ||
- Dumah | ||
- Edgar | ||
- Eileen Leahy | ||
- Eleanor Visyak | ||
- Ellen Harvelle | ||
- Eve | ||
- Frank Devereaux | ||
- Gabriel | ||
- Gadreel | ||
- Garth Fitzgerald IV | ||
- Gavin MacLeod | ||
- Gordon Walker | ||
- Gwen Campbell | ||
- Hannah | ||
- Harry Spengler | ||
- Ingrid | ||
- Jack Kline | ||
- Jenny | ||
- Jessica Moore | ||
- Jo Harvelle | ||
- Jody Mills | ||
- John Wayne Gacy | ||
- John Winchester | ||
- Josie Sands | ||
- Karen Singer | ||
- Kevin Tran | ||
- Lady Toni Bevell | ||
- Lilith | ||
- Linda Tran | ||
- Lisa Braeden | ||
- Lucifer | ||
- Mary Winchester | ||
- Mary Worthington | ||
- Meg Masters | ||
- Metatron | ||
- Michael | ||
- Mick Davies | ||
- Naomi | ||
- Nick | ||
- Pamela Barnes | ||
- Raphael | ||
- Rowena MacLeod | ||
- Ruby | ||
- Rufus Turner | ||
- Sam Winchester | ||
- Samandriel | ||
- Samuel Campbell | ||
- Sergei | ||
- Susan | ||
- Tessa | ||
- Uriel | ||
- Victor Henriksen | ||
- Zachariah | ||
creature: | ||
- Angel | ||
- Archangel | ||
- Croatoan Virus | ||
- Demon | ||
- Djinn | ||
- Dragon | ||
- Elf | ||
- Ghost | ||
- Ghoul | ||
- Hellhounds | ||
- Kappa | ||
- Khan worm | ||
- Leprechauns | ||
- Leviathan | ||
- Loch Ness Monster | ||
- Mermaid | ||
- Monster | ||
- Phoenix | ||
- Poltergeist | ||
- Shapeshifter | ||
- Soul Eater | ||
- Tricksters | ||
- Wendigo | ||
- Werewolf | ||
- Zombie | ||
- Vampire | ||
weapon: | ||
- Archangel Blades | ||
- Brass | ||
- Cain's knife | ||
- Crowley's bones | ||
- Death's Scythe | ||
- Death's ring | ||
- Excalibur | ||
- Fire | ||
- Hands Of God | ||
- Holy Oil | ||
- Holy Water | ||
- Lamb blood | ||
- Lance Of Michael | ||
- Rabbit's Foot | ||
- Righteous Bone | ||
- Salt | ||
- Silver Bullets | ||
- Staff of Moses | ||
- Sword of St. George | ||
- The Equalizer | ||
- The First Blade | ||
- Virgin blood | ||
- steel | ||
- The Colt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative '../../test_helper' | ||
|
||
class TestFakerTvShowsSupernatural < Test::Unit::TestCase | ||
def setup | ||
@tester = Faker::TvShows::Supernatural | ||
end | ||
|
||
def test_character | ||
assert @tester.character.match(/\w+/) | ||
end | ||
|
||
def test_creature | ||
assert @tester.creature.match(/\w+/) | ||
end | ||
|
||
def test_weapon | ||
assert @tester.weapon.match(/\w+/) | ||
end | ||
end |