-
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.
* Add Faker::HeroesOfTheStorm * Add hots to games module * Update heroes_of_the_storm.md
- Loading branch information
Showing
6 changed files
with
72 additions
and
1 deletion.
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,13 @@ | ||
# Faker::Games::HeroesOfTheStorm | ||
|
||
It might be available in the next version. | ||
|
||
```ruby | ||
Faker::Games::HeroesOfTheStorm.battleground #=> "Towers of Doom" | ||
|
||
Faker::Games::HeroesOfTheStorm.class #=> "Support" | ||
|
||
Faker::Games::HeroesOfTheStorm.hero #=> "Illidan" | ||
|
||
Faker::Games::HeroesOfTheStorm.quote #=> "MEAT!!!" | ||
``` |
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,25 @@ | ||
# frozen_string_literal: true | ||
|
||
module Faker | ||
module Games | ||
class HeroesOfTheStorm < Base | ||
class << self | ||
def battleground | ||
fetch('heroes_of_the_storm.battlegrounds') | ||
end | ||
|
||
def class | ||
fetch('heroes_of_the_storm.classes') | ||
end | ||
|
||
def hero | ||
fetch('heroes_of_the_storm.heroes') | ||
end | ||
|
||
def quote | ||
fetch('heroes_of_the_storm.quotes') | ||
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,7 @@ | ||
en: | ||
faker: | ||
heroes_of_the_storm: | ||
battlegrounds: ["Alterac Pass", "Battlefield of Eternity", "Blackheart's Bay", "Braxis Holdout", "Cursed Hollow", "Dragon Shire", "Garden of Terror", "Hanamura", "Haunted Mines", "Infernal Shrines", "Sky Temple", "Tomb of the Spider Queen", "Towers of Doom", "Volskaya Foundry", "Warhead Junction"] | ||
classes: ["Assasin", "Multiclass", "Specialist", "Support", "Warrior"] | ||
heroes: ["Abathur", "Alarak", "Alexstrasza", "Ana", "Ana", "Anub'arak", "Artanis", "Artanis", "Arthas", "Arthas", "Auriel", "Auriel", "Azmodan", "Azmodan", "Blaze", "Blaze", "Brightwing", "Brightwing", "Cassia", "Cassia", "Chen", "Chen", "Cho", "Cho", "Chromie", "Chromie", "D.Va", "D.Va", "Deckard", "Deckard", "Dehaka", "Dehaka", "Diablo", "Diablo", "E.T.C.", "E.T.C.", "Falstad", "Falstad", "Fenix", "Fenix", "Gall", "Gall", "Garrosh", "Garrosh", "Gazlowe", "Gazlowe", "Genji", "Genji", "Greymane", "Greymane", "Gul'dan", "Gul'dan", "Hanzo", "Hanzo", "Illidan", "Illidan", "Jaina", "Jaina", "Johanna", "Johanna", "Junkrat", "Junkrat", "Kael'thas", "Kael'thas", "Kel'Thuzad", "Kel'Thuzad", "Kerrigan", "Kerrigan", "Kharazim", "Kharazim", "Leoric", "Leoric", "Li Li", "Li Li", "Li-Ming", "Li-Ming", "Lt. Morales", "Lt. Morales", "Lunara", "Lunara", "Lúcio", "Lúcio", "Maiev", "Maiev", "Mal'Ganis", "Mal'Ganis", "Malfurion", "Malfurion", "Malthael", "Malthael", "Medivh", "Medivh", "Mephisto", "Mephisto", "Multi-class Multiclass\t", "Muradin", "Muradin", "Murky", "Murky", "Nazeebo", "Nazeebo", "Nova", "Nova", "Probius", "Probius", "Ragnaros", "Ragnaros", "Raynor", "Raynor", "Rehgar", "Rehgar", "Rexxar", "Rexxar", "Samuro", "Samuro", "Sgt. Hammer", "Sgt. Hammer", "Sonya", "Sonya", "Specialist Specialist\tAbathur", "Stitches", "Stitches", "Stukov", "Stukov", "Support Support\tAlexstrasza", "Sylvanas", "Sylvanas", "Tassadar", "Tassadar", "The Butcher", "The Butcher", "The Lost Vikings", "The Lost Vikings", "Thrall", "Thrall", "Tracer", "Tracer", "Tychus", "Tychus", "Tyrael", "Tyrael", "Tyrande", "Tyrande", "Uther", "Uther", "Valeera", "Valeera", "Valla", "Valla", "Warrior Warrior\tAnub'arak", "Whitemane", "Whitemane", "Xul", "Xul", "Yrel", "Yrel", "Zagara", "Zagara", "Zarya", "Zarya", "Zeratul", "Zeratul", "Zul'jin", "Zul'jin"] | ||
quotes: ["Beat them like they owe you money!", "Careful wizard, your kind has upset the balance beforeo I become re-dead? Deader? ... Alive?\"", "Don't forget to check the pocket!", "Have you ever considered aiming anywhere other than the face?", "Hey, you look like the cover of E.T.C.s new album!", "Human words are hard to make together talking for expressing... things!", "I like happy things! Like puppies, and rainbows, and dead enemies!", "I must leave and I blame this failure upon you.", "Mrgrgrlrgrlgr!!!", "Oh my God, I can't believe I just killed a panda.", "Taunting life form; you are weak! And physically unappealing!", "Teammates. Much to improve.\" is a pretty good contender.", "That was easy! You were easy to kill!", "This will only hurt until you die.", "Ugh, I've known much better healers.", "We drink first blood!", "You look like you could actually be of use here!", "You might be a king, or just a street sweeper... yet sooner or later you dance with the reaper.", "You see this hero yes? Then kill them!", "You think us fools?", "You waste both my time and your breath, and the former has value."] |
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,25 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative 'test_helper' | ||
|
||
class TestFakerGamesHeroesOfTheStorm < Test::Unit::TestCase | ||
def setup | ||
@tester = Faker::Games::HeroesOfTheStorm | ||
end | ||
|
||
def test_battleground | ||
assert @tester.battleground.match(/\w+/) | ||
end | ||
|
||
def test_class | ||
assert @tester.class.match(/\w+/) | ||
end | ||
|
||
def test_hero | ||
assert @tester.hero.match(/\w+/) | ||
end | ||
|
||
def test_quote | ||
assert @tester.quote.match(/\w+/) | ||
end | ||
end |