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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
# frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerSpace < Test::Unit::TestCase
def setup
@tester = Faker::Space
end
def test_planet
assert_match(/(\w+\.? ?){2,3}/, @tester.planet)
end
def test_moon
assert_match(/(\w+\.? ?){2,3}/, @tester.moon)
end
def test_galaxy
assert_match(/(\w+\.? ?){2,3}/, @tester.galaxy)
end
def test_nebula
assert_match(/(\w+\.? ?){2,3}/, @tester.nebula)
end
def test_star_cluster
assert_match(/(\w+\.? ?){2,3}/, @tester.star_cluster)
end
def test_constellation
assert_match(/(\w+\.? ?){2,3}/, @tester.constellation)
end
def test_star
assert_match(/(\w+\.? ?){2,3}/, @tester.star)
end
def test_agency
assert_match(/(\w+\.? ?){2,3}/, @tester.agency)
end
def test_agency_abv
assert_match(/(\w+\.? ?){2,3}/, @tester.agency_abv)
end
def test_nasa_space_craft
assert_match(/(\w+\.? ?){2,3}/, @tester.nasa_space_craft)
end
def test_company
assert_match(/(\w+\.? ?){2,3}/, @tester.company)
end
def test_distance_measurement
assert_match(/(\w+\.? ?){2,3}/, @tester.distance_measurement)
end
def test_meteorite
assert_match(/(\w+\.? ?){2,3}/, @tester.meteorite)
end
def test_launch_vehicle
assert_match(/(\w+\.? ?){2,3}/, @tester.launch_vehicle)
end
end
|