1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
# frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCosmere < Test::Unit::TestCase
def setup
@tester = Faker::Cosmere
end
def test_aon
assert_match(/\w+\.?/, @tester.aon)
end
def test_shard_world
assert_match(/\w+\.?/, @tester.shard_world)
end
def test_shard
assert_match(/\w+\.?/, @tester.shard)
end
def test_surge
assert_match(/\w+\.?/, @tester.surge)
end
def test_knight_radiant
assert_match(/\w+\.?/, @tester.knight_radiant)
end
def test_metal
assert_match(/\w+\.?/, @tester.metal)
end
def test_allomancer
assert_match(/\w+\.?/, @tester.allomancer)
end
def test_herald
assert_match(/\w+\.?/, @tester.herald)
end
def test_spren
assert_match(/\w+\.?/, @tester.spren)
end
end
|