-
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.
- Loading branch information
Showing
3 changed files
with
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module Faker | ||
class Myst < Base | ||
class << self | ||
def game | ||
fetch('myst.games') | ||
end | ||
|
||
def creature | ||
fetch('myst.creatures') | ||
end | ||
|
||
def age | ||
fetch('myst.ages') | ||
end | ||
|
||
def person | ||
fetch('myst.people') | ||
end | ||
|
||
def quote | ||
fetch('myst.quotes') | ||
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,47 @@ | ||
en: | ||
faker: | ||
myst: | ||
games: [ "Myst", "Riven: The Sequel to Myst", "Myst III: Exile", "Myst IV: Revelation", "Uru: Ages Beyond Myst", "Myst V: End of Ages" ] | ||
creatures: [ "squee", "sunner", "wahrks", "ytrams", "scarab beetles", "bahro", "karnaks", "Mangree", "Zeftyr" ] | ||
people: [ "The Stranger", "Atrus", "Sirrus", "Achenar", "Ghen", "Catherine", "Saavedro", "Yeesha", "Esher", "Atrius", "Ti'ana" ] | ||
ages: [ | ||
# Myst | ||
"Myst", "Stoneship", "Mechanical", "Channelwood", "Selenitic", "Earth", "Rime", | ||
# Riven | ||
" Riven", "Tay", "Age 233", | ||
# Exile | ||
"J'nanin", "Edanna", "Voltanic", "Amateria", "Narayan", | ||
# Revelation | ||
"Spire", "Haven", "Serenia", | ||
# Uru (all versions) | ||
"Relto", "Teledahn", "Gahreesen", "Kadish Tolesa", "Eder Gira", "Eder Kemo", "Nexus", "Er'cana", "Ahnonay", "Eder Delin", "Eder Tsogal", "Pod Age", "Minkata", "Jalak Dador", | ||
# End of Ages | ||
"Direbo", "Tahgira", "Todelmer", "Laki'ahn", "Noloben", | ||
# Books | ||
"Ko'ah", "Gemedet", "Age 37", "Inception", "Torus Age", "Averone", "Chroma'agana", "Terahnee", | ||
] | ||
quotes: [ | ||
# Atrus | ||
"The ending has not yet been written.", | ||
"I realized, the moment I fell into the fissure, that the Book would not be destroyed as I had planned.", | ||
"Try moving the slider.", | ||
"Remember the tower rotation.", | ||
|
||
# Gehn | ||
"Who the devil are you?", | ||
"One thing I know about linking books is that the doors they open don't close behind you.", | ||
|
||
# Achenar | ||
"Find the blue pages.", | ||
"Bring me blue pages.", | ||
|
||
# Sirrus | ||
"Find the red pages.", | ||
"Bring me the red pages.", | ||
|
||
# Saavedro | ||
"Atrus? Is that you? Come to rescue your Book so soon? Not yet, old friend... not yet.", | ||
|
||
# Ti'ana | ||
"Atrus... what do you see?", | ||
] |
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,27 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') | ||
|
||
class TestFakerMyst < Test::Unit::TestCase | ||
def setup | ||
@tester = Faker::Myst | ||
end | ||
|
||
def test_game | ||
assert @tester.game.match(/\w+/) | ||
end | ||
|
||
def test_creature | ||
assert @tester.creature.match(/\w+/) | ||
end | ||
|
||
def test_age | ||
assert @tester.age.match(/\w+/) | ||
end | ||
|
||
def test_person | ||
assert @tester.person.match(/\w+/) | ||
end | ||
|
||
def test_quote | ||
assert @tester.quote.match(/\w+/) | ||
end | ||
end |