repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1 value | license stringclasses 7 values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2 classes |
|---|---|---|---|---|---|---|---|---|
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/default/test_placeholdit.rb | test/faker/default/test_placeholdit.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestPlaceholdit < Test::Unit::TestCase
def setup
@tester = Faker::Placeholdit
end
def test_placeholdit
refute_nil @tester.image.match(%r{https://via\.placeholder\.com/(.+)(png?)})[1]
end
def test_avatar_with_custom_size
assert_equal('3x3', @tester.image(size: '3x3').match(%r{https://via\.placeholder\.com/+(\d+x\d+)})[1])
end
def test_avatar_with_incorrect_size
assert_raise ArgumentError do
@tester.image(size: '300x300s')
end
end
def test_avatar_with_supported_format
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)}, @tester.image(size: '300x300', format: 'jpg')
end
def test_avatar_with_incorrect_format
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'wrong_format')
end
end
def test_avatar_background_with_correct_six_char_hex
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)/ffffff}, @tester.image(size: '300x300', format: 'jpg', background_color: 'ffffff')
end
def test_avatar_background_with_correct_three_char_hex
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)/fff}, @tester.image(size: '300x300', format: 'jpg', background_color: 'fff')
end
def test_avatar_background_with_random_color
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)/[a-f0-9]{6}}, @tester.image(size: '300x300', format: 'jpg', background_color: :random)
end
def test_avatar_background_with_wrong_six_char_hex
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'jpg', background_color: 'fffffz')
end
end
def test_avatar_background_with_wrong_hex
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'jpg', background_color: 'ffff4')
end
end
def test_avatar_background_with_wrong_three_char_hex
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'jpg', background_color: 'ffz')
end
end
def test_avatar_font_color_with_correct_six_char_hex
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)/ffffff/000000}, @tester.image(size: '300x300', format: 'jpg', background_color: 'ffffff', text_color: '000000')
end
def test_avatar_font_color_with_correct_three_char_hex
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)/fff}, @tester.image(size: '300x300', format: 'jpg', background_color: 'fff', text_color: '000')
end
def test_avatar_font_color_with_random_color
assert_match %r{https://via\.placeholder\.com/(.+)(jpg?)/fff/[a-f0-9]{6}}, @tester.image(size: '300x300', format: 'jpg', background_color: 'fff', text_color: :random)
end
def test_avatar_font_color_with_wrong_six_char_hex
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'jpg', background_color: 'ffffff', text_color: '900F0z')
end
end
def test_avatar_font_color_with_wrong_hex
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'jpg', background_color: 'ffffff', text_color: 'x9')
end
end
def test_avatar_font_color_with_wrong_three_char_hex
assert_raise ArgumentError do
@tester.image(size: '300x300', format: 'jpg', background_color: 'ffffff', text_color: '00p')
end
end
def test_text_not_present
assert_match %r{https://via\.placeholder\.com/[^\\?]+$}, @tester.image(size: '300x300', format: 'jpg', background_color: 'fff', text_color: '000')
end
def test_text_present
assert_match %r{https://via\.placeholder\.com/(.+)\?text=hello}, @tester.image(size: '300x300', format: 'jpg', background_color: 'fff', text_color: '000', text: 'hello')
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/default/test_faker_space.rb | test/faker/default/test_faker_space.rb | # 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
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_sword_art_online.rb | test/faker/japanese_media/test_faker_sword_art_online.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseSwordArtOnline < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::SwordArtOnline
end
def test_real_name
assert_match(/\w+\.?/, @tester.real_name)
end
def test_game_name
assert_match(/\w+\.?/, @tester.game_name)
end
def test_location
assert_match(/\w+\.?/, @tester.location)
end
def test_item
assert_match(/\w+\.?/, @tester.item)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_conan.rb | test/faker/japanese_media/test_faker_conan.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseConan < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::Conan
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_gadget
assert_match(/\w+/, @tester.gadget)
end
def test_vehicle
assert_match(/\w+/, @tester.vehicle)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_fullmetal_alchemist_brotherhood.rb | test/faker/japanese_media/test_faker_fullmetal_alchemist_brotherhood.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerFullmetalAlchemistBrotherhood < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::FullmetalAlchemistBrotherhood
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_city
assert_match(/\w+/, @tester.city)
end
def test_country
assert_match(/\w+/, @tester.country)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_dragon_ball.rb | test/faker/japanese_media/test_faker_dragon_ball.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseMediaDragonBall < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::DragonBall
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_race
assert_match(/\w+/, @tester.race)
end
def test_planet
assert_match(/\w+/, @tester.planet)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_studio_ghibli.rb | test/faker/japanese_media/test_faker_studio_ghibli.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseMediaStudioGhibli < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::StudioGhibli
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_movie
assert_match(/\w+/, @tester.movie)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/text_faker_naruto.rb | test/faker/japanese_media/text_faker_naruto.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseNaruto < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::Naruto
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_village
assert_match(/\w+/, @tester.village)
end
def test_eye
assert_match(/\w+/, @tester.eye)
end
def test_demon
assert_match(/\w+/, @tester.demon)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_kamen_rider.rb | test/faker/japanese_media/test_faker_kamen_rider.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseKamenRider < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::KamenRider
end
def test_kamen_rider
assert_match(/\w+\.?/, @tester.kamen_rider)
end
def test_kamen_rider_showa
assert_match(/\w+\.?/, @tester.kamen_rider(:showa))
end
def test_kamen_rider_heisei
assert_match(/\w+\.?/, @tester.kamen_rider(:heisei))
end
def test_kamen_rider_reiwa
assert_match(/\w+\.?/, @tester.kamen_rider(:reiwa))
end
def test_kamen_rider_heisei_reiwa
assert_match(/\w+\.?/, @tester.kamen_rider(:heisei, :reiwa))
end
def test_user_all
assert_match(/\w+\.?/, @tester.user)
end
def test_user_showa
assert_match(/\w+\.?/, @tester.user(:showa))
end
def test_user_heisei
assert_match(/\w+\.?/, @tester.user(:heisei))
end
def test_user_reiwa
assert_match(/\w+\.?/, @tester.user(:reiwa))
end
def test_user_heisei_reiwa
assert_match(/\w+\.?/, @tester.user(:heisei, :reiwa))
end
def test_series_all
assert_match(/\w+\.?/, @tester.series)
end
def test_series_showa
assert_match(/\w+\.?/, @tester.series(:showa))
end
def test_series_heisei
assert_match(/\w+\.?/, @tester.series(:heisei))
end
def test_series_reiwa
assert_match(/\w+\.?/, @tester.series(:reiwa))
end
def test_series_heisei_reiwa
assert_match(/\w+\.?/, @tester.series(:heisei, :reiwa))
end
def test_collectible_device_all
assert_match(/\w+\.?/, @tester.collectible_device)
end
# The Showa era had not introduced the concept of collectible devices.
def test_collectible_device_showa
assert_raise('Faker::JapaneseMedia::KamenRider::UnavailableInEra') { @tester.collectible_device(:showa) }
end
def test_collectible_device_heisei
assert_match(/\w+\.?/, @tester.collectible_device(:heisei))
end
def test_collectible_device_reiwa
assert_match(/\w+\.?/, @tester.collectible_device(:reiwa))
end
def test_collectible_device_heisei_reiwa
assert_match(/\w+\.?/, @tester.collectible_device(:heisei, :reiwa))
end
def test_transformation_device_all
assert_match(/\w+\.?/, @tester.transformation_device)
end
def test_transformation_device_showa
assert_match(/\w+\.?/, @tester.transformation_device(:showa))
end
def test_transformation_device_heisei
assert_match(/\w+\.?/, @tester.transformation_device(:heisei))
end
def test_transformation_device_reiwa
assert_match(/\w+\.?/, @tester.transformation_device(:reiwa))
end
def test_transformation_device_heisei_reiwa
assert_match(/\w+\.?/, @tester.transformation_device(:heisei, :reiwa))
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_cowboy_bebop.rb | test/faker/japanese_media/test_faker_cowboy_bebop.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCowboyBebop < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::CowboyBebop
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_episode
assert_match(/\w+/, @tester.episode)
end
def test_song
assert_match(/\w+/, @tester.song)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_doraemon.rb | test/faker/japanese_media/test_faker_doraemon.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseMediaDoraemon < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::Doraemon
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_gadget
assert_match(/\w+/, @tester.gadget)
end
def test_location
assert_match(/\w+/, @tester.location)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/japanese_media/test_faker_one_piece.rb | test/faker/japanese_media/test_faker_one_piece.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJapaneseOnePiece < Test::Unit::TestCase
def setup
@tester = Faker::JapaneseMedia::OnePiece
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_sea
assert_match(/\w+/, @tester.sea)
end
def test_island
assert_match(/\w+/, @tester.island)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_akuma_no_mi
assert_match(/\w+/, @tester.akuma_no_mi)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/religion/test_bible.rb | test/faker/religion/test_bible.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerReligionBible < Test::Unit::TestCase
def setup
@tester = Faker::Religion::Bible
end
def test_character
assert_match(/\w/, @tester.character)
end
def test_location
assert_match(/\w/, @tester.location)
end
def test_quote
assert_match(/\w/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/fantasy/test_faker_fantasy_tolkien.rb | test/faker/fantasy/test_faker_fantasy_tolkien.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerFantasyTolkien < Test::Unit::TestCase
def setup
@tester = Faker::Fantasy::Tolkien
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_race
assert_match(/\w+/, @tester.race)
end
def test_poem
assert_match(/\w+/, @tester.poem)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/sports/test_faker_sport.rb | test/faker/sports/test_faker_sport.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerSport < Test::Unit::TestCase
def setup
@tester = Faker::Sport
end
def test_sport
assert_match(/\w+/, @tester.sport)
end
def test_sport_with_ancient_allowed
assert_match(/\w+/, @tester.sport(include_ancient: true))
end
def test_sport_with_unusual_allowed
assert_match(/\w+/, @tester.sport(include_unusual: true))
end
def test_sport_with_ancient_and_unusual_allowed
assert_match(/\w+/, @tester.sport(include_ancient: true, include_unusual: true))
end
def test_summer_olympics
assert_match(/\w+/, @tester.summer_olympics_sport)
end
def test_winter_olympics
assert_match(/\w+/, @tester.winter_olympics_sport)
end
def test_summer_paralympics
assert_match(/\w+/, @tester.summer_paralympics_sport)
end
def test_winter_paralympics
assert_match(/\w+/, @tester.winter_paralympics_sport)
end
def test_unusual_sports
assert_match(/\w+/, @tester.unusual_sport)
end
def test_ancient_olympics
assert_match(/\w+/, @tester.ancient_olympics_sport)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/sports/test_faker_mountaineering.rb | test/faker/sports/test_faker_mountaineering.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerMountaineering < Test::Unit::TestCase
def setup
@tester = Faker::Sports::Mountaineering
end
def test_mountaineer
assert_match(/\w+/, @tester.mountaineer)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/sports/test_faker_basketball.rb | test/faker/sports/test_faker_basketball.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerBasketball < Test::Unit::TestCase
def setup
@tester = Faker::Sports::Basketball
end
def test_team
assert_match(/\w+/, @tester.team)
end
def test_player
assert_match(/\w+/, @tester.player)
end
def test_coach
assert_match(/\w+/, @tester.coach)
end
def test_position
assert_match(/\w+/, @tester.position)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/sports/test_faker_football.rb | test/faker/sports/test_faker_football.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerFootball < Test::Unit::TestCase
def setup
@tester = Faker::Sports::Football
end
def test_team
assert_match(/\w+/, @tester.team)
end
def test_player
assert_match(/\w+/, @tester.player)
end
def test_coach
assert_match(/\w+/, @tester.coach)
end
def test_competition
assert_match(/\w+/, @tester.competition)
end
def test_position
assert_match(/\w+/, @tester.position)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/sports/test_faker_chess.rb | test/faker/sports/test_faker_chess.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerChess < Test::Unit::TestCase
def setup
@tester = Faker::Sports::Chess
end
def test_player
assert_match(/\w+/, @tester.player)
end
def test_federation
assert_match(/\w+/, @tester.federation)
end
def test_tournament
assert_match(/\w+/, @tester.tournament)
end
def test_rating
deterministically_verify -> { @tester.rating(from: 2000, to: 2900) }, depth: 5 do |random_number|
assert_operator random_number, :>=, 2000, "Expected >= 2000, but got #{random_number}"
assert_operator random_number, :<=, 2900, "Expected <= 2900, but got #{random_number}"
end
end
def test_opening
assert_match(/\w+/, @tester.opening)
end
def test_title
assert_match(/\w+/, @tester.title)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/sports/test_faker_volleyball.rb | test/faker/sports/test_faker_volleyball.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerVolleyball < Test::Unit::TestCase
def setup
@tester = Faker::Sports::Volleyball
end
def test_team
assert_match(/\w+/, @tester.team)
end
def test_player
assert_match(/\w+/, @tester.player)
end
def test_coach
assert_match(/\w+/, @tester.coach)
end
def test_position
assert_match(/\w+/, @tester.position)
end
def test_formation
assert_match(/\w+/, @tester.formation)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/quotes/test_faker_chiquito.rb | test/faker/quotes/test_faker_chiquito.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerChiquito < Test::Unit::TestCase
def setup
@tester = Faker::Quotes::Chiquito
end
def test_expression
assert_match(/\w+/, @tester.expression)
end
def test_term
assert_match(/\w+/, @tester.term)
end
def test_joke
assert_match(/\w+/, @tester.joke)
end
def test_sentence
assert_match(/\w+/, @tester.sentence)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/quotes/test_faker_rajnikanth.rb | test/faker/quotes/test_faker_rajnikanth.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerRajnikanth < Test::Unit::TestCase
def setup
@tester = Faker::Quotes::Rajnikanth
end
def test_jokes
assert_match(/\w+/, @tester.joke)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/quotes/test_faker_quote.rb | test/faker/quotes/test_faker_quote.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerYoda < Test::Unit::TestCase
def setup
@tester = Faker::Quote
end
def test_famous_last_words
assert_match(/\w+/, @tester.famous_last_words)
end
def test_jack_handey
assert_match(/\w+/, @tester.jack_handey)
end
def test_matz
assert_match(/\w+/, @tester.matz)
end
def test_most_interesting_man_in_the_world
assert_match(/\w+/, @tester.most_interesting_man_in_the_world)
end
def test_robin
assert_match(/\w+/, @tester.robin)
end
def test_singular_siegler
assert_match(/\w+/, @tester.singular_siegler)
end
def test_yoda
assert_match(/\w+/, @tester.yoda)
end
def test_fortune_cookie
assert_match(/\w+/, @tester.fortune_cookie)
end
def test_mitch_hedberg
assert_match(/\w+/, @tester.mitch_hedberg)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/quotes/test_faker_shakespeare.rb | test/faker/quotes/test_faker_shakespeare.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerShakespeare < Test::Unit::TestCase
def setup
@tester = Faker::Quotes::Shakespeare
end
def test_as_you_like_it_quote
assert_match(/\w+/, @tester.as_you_like_it_quote)
end
def test_king_richard_iii_quote
assert_match(/\w+/, @tester.king_richard_iii_quote)
end
def test_romeo_and_juliet_quote
assert_match(/\w+/, @tester.romeo_and_juliet_quote)
end
def test_hamlet_quote
assert_match(/\w+/, @tester.hamlet_quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_game.rb | test/faker/games/test_faker_game.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerGame < Test::Unit::TestCase
def setup
@tester = Faker::Game
end
def test_title
assert_match(/\w+/, @tester.title)
end
def test_genre
assert_match(/\w+/, @tester.genre)
end
def test_platform
assert_match(/\w+/, @tester.platform)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_pokemon.rb | test/faker/games/test_faker_pokemon.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerPokemon < Test::Unit::TestCase
def setup
@tester = Faker::Games::Pokemon
end
def test_name
assert_match(/\w+/, @tester.name)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_move
assert_match(/\w+/, @tester.move)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_minecraft.rb | test/faker/games/test_faker_minecraft.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerMinecraft < Test::Unit::TestCase
def setup
@minecraft = Faker::Games::Minecraft
end
def test_achievement
assert_match(/\w+/, @minecraft.achievement)
end
def test_biome
assert_match(/\w+/, @minecraft.biome)
end
def test_block
assert_match(/\w+/, @minecraft.block)
end
def test_enchantment
assert_match(/\w+/, @minecraft.enchantment)
end
def test_game_mode
assert_match(/\w+/, @minecraft.game_mode)
end
def test_item
assert_match(/\w+/, @minecraft.item)
end
def test_mob
assert_match(/\w+/, @minecraft.mob)
end
def test_status_effect
assert_match(/\w+/, @minecraft.status_effect)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_myst.rb | test/faker/games/test_faker_myst.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerMyst < Test::Unit::TestCase
def setup
@tester = Faker::Games::Myst
end
def test_game
assert_match(/\w+/, @tester.game)
end
def test_creature
assert_match(/\w+/, @tester.creature)
end
def test_age
assert_match(/\w+/, @tester.age)
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_world_of_warcraft.rb | test/faker/games/test_faker_world_of_warcraft.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestWorldOfWarcraft < Test::Unit::TestCase
def setup
@tester = Faker::Games::WorldOfWarcraft
end
def test_heroes
assert_match(/\w+/, @tester.hero)
end
def test_class_names
assert_match(/\w+/, @tester.class_name)
end
def test_races
assert_match(/\w+/, @tester.race)
end
def test_quotes
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_fallout.rb | test/faker/games/test_faker_fallout.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerFallout < Test::Unit::TestCase
def setup
@tester = Faker::Games::Fallout
end
def test_hero
assert_match(/\w+/, @tester.character)
end
def test_faction
assert_match(/\w+/, @tester.faction)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_final_fantasy_xiv.rb | test/faker/games/test_faker_final_fantasy_xiv.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFinalFantasyXIV < Test::Unit::TestCase
def setup
@tester = Faker::Games::FinalFantasyXIV
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_jobs
assert_match(/\w+/, @tester.job)
end
def test_races
assert_match(/\w+/, @tester.race)
end
def test_data_centers
assert_match(/\w+/, @tester.data_center)
end
def test_zones
assert_match(/\w+/, @tester.zone)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_dota.rb | test/faker/games/test_faker_dota.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerDota < Test::Unit::TestCase
def setup
@tester = Faker::Games::Dota
@heroes = %w[abaddon alchemist ancient_apparition anti_mage arc_warden axe bane batrider beastmaster
bloodseeker bounty_hunter brewmaster bristleback broodmother centaur centaur_warrunner
chaos_knight chen clinkz clockwerk crystal_maiden dark_seer dark_willow dawnbreaker dazzle
death_prophet disruptor doom dragon_knight drow_ranger earth_spirit earthshaker
elder_titan huskar io kunkka legion_commander lifestealer lycan magnus meepo night_stalker
omniknight phoenix pudge sand_king slardar spirit_breaker sven tidehunter timbersaw tiny
treant_protector tusk underlord undying wraith_king]
end
def test_building
assert_match(/\w+/, @tester.building)
end
def test_hero
assert_match(/\w+/, @tester.hero)
end
def test_item
assert_match(/\w+/, @tester.item)
end
def test_team
assert_match(/\w+/, @tester.team)
end
def test_player
assert_match(/[\p{Katakana}\p{Han}\w]+/, @tester.player)
end
def test_heroes_quotes
@heroes.each do |hero|
assert_match(/\w+/, @tester.quote(hero: hero))
end
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_zelda.rb | test/faker/games/test_faker_zelda.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerZelda < Test::Unit::TestCase
def setup
@tester = Faker::Games::Zelda
end
def test_game
assert_match(/\w+\.?/, @tester.game)
end
def test_character
assert_match(/\w+\.?/, @tester.character)
end
def test_location
assert_match(/\w+\.?/, @tester.location)
end
def test_item
assert_match(/\w+\.?/, @tester.item)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_heroes_of_the_storm.rb | test/faker/games/test_faker_heroes_of_the_storm.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerHeroesOfTheStorm < Test::Unit::TestCase
def setup
@tester = Faker::Games::HeroesOfTheStorm
end
def test_battleground
assert_match(/\w+/, @tester.battleground)
end
def test_class_name
assert_match(/\w+/, @tester.class_name)
end
def test_hero
assert_match(/\w+/, @tester.hero)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_sonic_the_hedgehog.rb | test/faker/games/test_faker_sonic_the_hedgehog.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerGamesSonicTheHedgehog < Test::Unit::TestCase
def setup
@tester = Faker::Games::SonicTheHedgehog
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_zone
assert_match(/\w+/, @tester.zone)
end
def test_game
assert_match(/\w+/, @tester.game)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_witcher.rb | test/faker/games/test_faker_witcher.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerWitcher < Test::Unit::TestCase
def setup
@witcher = Faker::Games::Witcher
end
def test_character
assert_match(/\w+/, @witcher.character)
end
def test_location
assert_match(/\w+/, @witcher.location)
end
def test_school
assert_match(/\w+/, @witcher.school)
end
def test_witcher
assert_match(/\w+/, @witcher.witcher)
end
def test_monster
assert_match(/\w+/, @witcher.monster)
end
def test_quote
assert_match(/\w+/, @witcher.quote)
end
def test_sign
assert_match(/\w+/, @witcher.sign)
end
def test_potion
assert_match(/\w+/, @witcher.potion)
end
def test_book
assert_match(/\w+/, @witcher.book)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_league_of_legends.rb | test/faker/games/test_faker_league_of_legends.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerLeagueOfLegends < Test::Unit::TestCase
def setup
@tester = Faker::Games::LeagueOfLegends
end
def test_champions
assert_match(/\w+/, @tester.champion)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_summoner_spell
assert_match(/\w+/, @tester.summoner_spell)
end
def test_masteries
assert_match(/\w+/, @tester.masteries)
end
def test_rank
assert_match(/\w+/, @tester.rank)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_clash_of_clans.rb | test/faker/games/test_faker_clash_of_clans.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerClashOfClans < Test::Unit::TestCase
def setup
@tester = Faker::Games::ClashOfClans
end
def test_troop
assert_match(/\w+/, @tester.troop)
end
def test_rank
assert_match(/\w+/, @tester.rank)
end
def test_defensive_building
assert_match(/\w+/, @tester.defensive_building)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_tarkov.rb | test/faker/games/test_faker_tarkov.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTarkov < Test::Unit::TestCase
def setup
@tester = Faker::Games::Tarkov
end
# test using assert_match not assert
def test_location
assert_match(/\w+/, @tester.location)
end
def test_trader
assert_match(/\w+/, @tester.trader)
end
def test_item
assert_match(/\w+/, @tester.item)
end
def test_weapon
assert_match(/\w+/, @tester.weapon)
end
def test_boss
assert_match(/\w+/, @tester.boss)
end
def test_faction
assert_match(/\w+/, @tester.faction)
end
def test_quest
assert_match(/\w+/, @tester.quest)
end
def test_prapor_quest
assert_match(/\w+/, @tester.prapor_quest)
end
def test_therapist_quest
assert_match(/\w+/, @tester.therapist_quest)
end
def test_skier_quest
assert_match(/\w+/, @tester.skier_quest)
end
def test_peacekeeper_quest
assert_match(/\w+/, @tester.peacekeeper_quest)
end
def test_mechanic_quest
assert_match(/\w+/, @tester.mechanic_quest)
end
def test_ragman_quest
assert_match(/\w+/, @tester.ragman_quest)
end
def test_jaeger_quest
assert_match(/\w+/, @tester.jaeger_quest)
end
def test_fence_quest
assert_match(/\w+/, @tester.fence_quest)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_street_fighter.rb | test/faker/games/test_faker_street_fighter.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerStreetFighter < Test::Unit::TestCase
def setup
@tester = Faker::Games::StreetFighter
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_stage
assert_match(/\w+/, @tester.stage)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_move
assert_match(/\w+/, @tester.move)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_super_mario.rb | test/faker/games/test_faker_super_mario.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerSuperMario < Test::Unit::TestCase
def setup
@tester = Faker::Games::SuperMario
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_game
assert_match(/\w+/, @tester.game)
end
def test_location
assert_match(/\w+/, @tester.location)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_heroes.rb | test/faker/games/test_faker_heroes.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerHeroes < Test::Unit::TestCase
def setup
@tester = Faker::Games::Heroes
end
def test_name
assert_match(/\w+/, @tester.name)
end
def test_specialty
assert_match(/\w+/, @tester.specialty)
end
def test_klass
assert_match(/\w+/, @tester.klass)
end
def test_artifact
assert_match(/\w+/, @tester.artifact)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_super_smash_bros.rb | test/faker/games/test_faker_super_smash_bros.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerGamesSuperSmashBros < Test::Unit::TestCase
def setup
@tester = Faker::Games::SuperSmashBros
end
def test_fighter
assert_match(/\w+/, @tester.fighter)
end
def test_stage
assert_match(/\w+/, @tester.stage)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_elder_scrolls.rb | test/faker/games/test_faker_elder_scrolls.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerElderScrolls < Test::Unit::TestCase
def setup
@tester = Faker::Games::ElderScrolls
end
def test_race
assert_match(/\w+/, @tester.race)
end
def test_region
assert_match(/\w+/, @tester.region)
end
def test_city
assert_match(/\w+/, @tester.city)
end
def test_dragon
assert_match(/\w+/, @tester.dragon)
end
def test_creature
assert_match(/\w+/, @tester.creature)
end
def test_name
assert_match(/\w+/, @tester.name)
end
def test_first_name
assert_match(/\w+/, @tester.first_name)
end
def test_last_name
assert_match(/\w+/, @tester.last_name)
end
def test_weapon
assert_match(/\w+/, @tester.weapon)
end
def jewelry
assert_match(/\w+/, @tester.jewelry)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_dnd.rb | test/faker/games/test_faker_dnd.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerDnD < Test::Unit::TestCase
def setup
@tester = Faker::Games::DnD
end
def test_alignment
assert_match(/\w+/, @tester.alignment)
end
def test_background
assert_match(/\w+/, @tester.background)
end
def test_city
assert_match(/\w+/, @tester.city)
end
def test_first_name
assert_match(/\w+/, @tester.first_name)
end
def test_klass
assert_match(/\w+/, @tester.klass)
end
def test_language
assert_match(/\w+/, @tester.language)
end
def test_last_name
assert_match(/\w+/, @tester.last_name)
end
def test_melee_weapon
assert_match(/\w+/, @tester.melee_weapon)
end
def test_monster
assert_match(/\w+/, @tester.monster)
end
def test_name
assert_match(/\w+/, @tester.name)
end
def test_race
assert_match(/\w+/, @tester.race)
end
def test_ranged_weapon
assert_match(/\w+/, @tester.ranged_weapon)
end
def test_title_name
assert_match(/\w+/, @tester.title_name)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_touhou.rb | test/faker/games/test_faker_touhou.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTouhou < Test::Unit::TestCase
def setup
@tester = Faker::Games::Touhou
end
def test_game
assert_match(/\w+\.?/, @tester.game)
end
def test_character
assert_match(/\w+\.?/, @tester.character)
end
def test_location
assert_match(/\w+\.?/, @tester.location)
end
def test_spell_card
assert_match(/\w+\.?/, @tester.spell_card)
end
def test_song
assert_match(/\w+\.?/, @tester.song)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_control.rb | test/faker/games/test_faker_control.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerGameControl < Test::Unit::TestCase
def setup
@tester = Faker::Games::Control
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_object_of_power
assert_match(/\w+/, @tester.object_of_power)
end
def test_altered_item
assert_match(/\w+/, @tester.altered_item)
end
def test_altered_world_event
assert_match(/\w+/, @tester.altered_world_event)
end
def test_hiss
assert_match(/\w+/, @tester.hiss)
end
def test_the_board
assert_match(/\w+/, @tester.the_board)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_warhammer_fantasy.rb | test/faker/games/test_faker_warhammer_fantasy.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestWarhammerFantasy < Test::Unit::TestCase
def setup
@tester = Faker::Games::WarhammerFantasy
end
def test_heroes
assert_match(/\w+/, @tester.hero)
end
def test_quotes
assert_match(/\w+/, @tester.quote)
end
def test_locations
assert_match(/\w+/, @tester.location)
end
def test_factions
assert_match(/\w+/, @tester.faction)
end
def test_creatures
assert_match(/\w+/, @tester.creature)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/games/test_faker_overwatch.rb | test/faker/games/test_faker_overwatch.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerOverwatch < Test::Unit::TestCase
def setup
@tester = Faker::Games::Overwatch
end
def test_hero
assert_match(/\w+/, @tester.hero)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/travel/test_faker_train_station.rb | test/faker/travel/test_faker_train_station.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTrainStation < Test::Unit::TestCase
def setup
@tester = Faker::Travel::TrainStation
end
def test_name_uk
assert_match(/\w+/, @tester.name(region: 'united_kingdom', type: 'metro'))
assert_match(/\w+/, @tester.name(region: :united_kingdom, type: 'metro'))
end
def test_name_esp
assert_match(/\w+/, @tester.name(region: 'spain', type: 'railway'))
end
def test_name_us
assert_match(/\w+/, @tester.name(region: 'united_states', type: 'metro'))
end
def test_name_no_args
assert_match(/\w+/, @tester.name)
end
def test_region_only
assert_match(/\w+/, @tester.name(region: 'germany'))
assert_match(/\w+/, @tester.name(region: 'united_states'))
end
def test_type_only
assert_match(/\w+/, @tester.name(type: 'metro'))
assert_match(/\w+/, @tester.name(type: 'railway'))
end
def test_name_with_invalid_arguments
assert_raises ArgumentError do
@tester.name(bee: 'bzzz', fish: 'blub')
end
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/travel/test_faker_airports.rb | test/faker/travel/test_faker_airports.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerAirport < Test::Unit::TestCase
def setup
@tester = Faker::Travel::Airport
end
def test_name
assert_match(/\w+/, @tester.name(size: 'small', region: 'united_states'))
end
def test_iata
assert_match(/\w+/, @tester.iata(size: 'small', region: 'united_states'))
end
def test_name_with_invalid_arguments
assert_raises ArgumentError do
@tester.name(cats: 'meow', dogs: 'woof')
end
end
def test_iata_with_invalid_arguments
assert_raises ArgumentError do
@tester.iata(cats: 'meow', dogs: 'woof')
end
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/creature/test_faker_dog.rb | test/faker/creature/test_faker_dog.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerDog < Test::Unit::TestCase
def setup
@tester = Faker::Creature::Dog
end
def test_name
assert_match(/\w+\.?/, @tester.name)
end
def test_breed
assert_match(/\w+\.?/, @tester.breed)
end
def test_sound
assert_match(/\w+\.?/, @tester.sound)
end
def test_meme_phrase
assert_match(/\w+\.?/, @tester.meme_phrase)
end
def test_age
assert_match(/\w+\.?/, @tester.age)
end
def test_gender
assert_match(/\w+\.?/, @tester.gender)
end
def test_coat_length
assert_match(/\w+\.?/, @tester.coat_length)
end
def test_size
assert_match(/\w+\.?/, @tester.size)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/creature/test_faker_bird.rb | test/faker/creature/test_faker_bird.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCreatureBird < Test::Unit::TestCase
def setup
@tester = Faker::Creature::Bird
@common_order_map = I18n.translate('faker.creature.bird.order_common_map')
end
def test_orders
assert_match(/[A-Z]\w+formes/, @tester.order)
end
def test_anatomies
assert_match(/[a-z]+/, @tester.anatomy)
end
def test_anatomy_past_tenses
assert_match(/[a-z]+ed$/, @tester.anatomy_past_tense)
end
def test_geos
assert_match(/[A-Za-z][a-z ]/, @tester.geo)
end
def test_colors
assert_match(/[a-z]+/, @tester.color)
end
def test_silly_adjectives
assert @tester.emotional_adjective.match(/[a-z]+/) && @tester.silly_adjective.match(/[a-z]+/)
end
def test_adjectives
assert_match(/[a-z]+/, @tester.adjective)
end
def test_common_names
assert_match(/[a-z]+/, @tester.common_name)
end
def test_common_names_with_specific_order
specific_order = @tester.order
name = @tester.common_name specific_order
assert_includes @common_order_map[specific_order.to_sym].map(&:downcase), name
end
def test_common_names_with_specific_but_imaginary_order
not_real_order = :Somethingaformes
assert_raises(ArgumentError) { @tester.common_name not_real_order }
end
def test_common_name_with_bad_parameter
stupid_param = 9
assert_raises(TypeError) { @tester.common_name stupid_param }
end
def test_order_with_common_names
entry = @tester.order_with_common_name
assert_includes(@common_order_map.keys, entry[:order].to_sym) &&
assert_includes(@common_order_map[entry[:order]], entry[:common_name])
end
def test_specific_order_with_common_names
specific_order = @tester.order
entry = @tester.order_with_common_name specific_order
assert_includes(@common_order_map[specific_order.to_sym], entry[:common_name])
end
def test_plausible_common_names
patterns = [
/[A-Z][a-z]+'s [a-z]+/,
/[A-Z][a-z]+ [a-z]+/,
/[A-Z][a-z]+ [a-z]+ [a-z]+/,
/[A-Z][a-z]+-[a-z]+ed [a-z]+/
]
name = @tester.plausible_common_name
assert_predicate patterns.collect { |pattern| pattern.match? name }, :any?,
"Faker::Creature::Bird#plausible_common_name failed on '#{name}'"
end
def test_implausable_common_names
patterns = [
/[A-Z][a-z]+'s [a-z]+ [a-z]+/,
/[A-Z][a-z]+ [a-z]+ [a-z]+/,
/[A-Z][a-z]+-[a-z]+ed [a-z]+ [a-z]+/
]
name = @tester.implausible_common_name
assert_predicate patterns.collect { |pattern| pattern.match? name }, :any?,
"Faker::Creature::Bird#implausible_common_name failed on '#{name}'"
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/creature/test_faker_animal.rb | test/faker/creature/test_faker_animal.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCreatureAnimal < Test::Unit::TestCase
def setup
@tester = Faker::Creature::Animal
end
def test_name
assert_match(/\w+/, @tester.name)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/creature/test_faker_horse.rb | test/faker/creature/test_faker_horse.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerHorse < Test::Unit::TestCase
def setup
@tester = Faker::Creature::Horse
end
def test_name
assert_match(/\w+\.?/, @tester.name)
end
def test_breed
assert_match(/\w+\.?/, @tester.breed)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/creature/test_faker_cat.rb | test/faker/creature/test_faker_cat.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCat < Test::Unit::TestCase
def setup
@tester = Faker::Creature::Cat
end
def test_name
assert_match(/\w+\.?/, @tester.name)
end
def test_breed
assert_match(/\w+\.?/, @tester.breed)
end
def test_registry
assert_match(/\w+\.?/, @tester.registry)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/locations/test_faker_australia.rb | test/faker/locations/test_faker_australia.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerLocationsAustralia < Test::Unit::TestCase
def test_location
assert_match(/\w+/, Faker::Locations::Australia.location)
end
def test_animal
assert_match(/\w+/, Faker::Locations::Australia.animal)
end
def test_state
assert_match(/\w+/, Faker::Locations::Australia.state)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_twin_peaks.rb | test/faker/tv_shows/test_twin_peaks.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsTwinPeaks < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TwinPeaks
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_breaking_bad.rb | test/faker/tv_shows/test_breaking_bad.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsBreakingBad < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::BreakingBad
end
def test_character
deterministically_verify(-> { @tester.character }, depth: 4) { |result| assert_match(/\w+/, result) }
end
def test_episode
deterministically_verify(-> { @tester.episode }, depth: 4) { |result| assert_match(/\w+/, result) }
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_seinfeld.rb | test/faker/tv_shows/test_seinfeld.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSeinfeld < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Seinfeld
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_business
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_the_fresh_prince_of_bel_air.rb | test/faker/tv_shows/test_the_fresh_prince_of_bel_air.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsTheFreshPrinceOfBelAir < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TheFreshPrinceOfBelAir
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_actor
assert_match(/\w+/, @tester.actor)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_family_guy.rb | test/faker/tv_shows/test_family_guy.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsFamilyGuy < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::FamilyGuy
end
def test_character
assert_match(/\w/, @tester.character)
end
def test_location
assert_match(/\w/, @tester.location)
end
def test_quote
assert_match(/\w/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_the_thick_of_it.rb | test/faker/tv_shows/test_the_thick_of_it.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsTheThickOfIt < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TheThickOfIt
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_department
assert_match(/\w+/, @tester.department)
end
def test_position
assert_match(/\w+/, @tester.position)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_ru_paul.rb | test/faker/tv_shows/test_ru_paul.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerRuPaul < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::RuPaul
end
def test_quote
assert_match(/\w+/i, @tester.quote)
end
def test_queen
assert_match(/\w+/i, @tester.queen)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_futurama.rb | test/faker/tv_shows/test_futurama.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsFuturama < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Futurama
end
def test_characters
deterministically_verify(-> { @tester.character }) { |result| assert_match(/\w+/, result) }
end
def test_locations
deterministically_verify(-> { @tester.location }) { |result| assert_match(/\w+/, result) }
end
def test_quote
deterministically_verify(-> { @tester.quote }) { |result| assert_match(/\w+/, result) }
end
def test_hermes_catchphrases
deterministically_verify(-> { @tester.hermes_catchphrase }) { |result| assert_match(/\w+/, result) }
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_the_it_crowd.rb | test/faker/tv_shows/test_the_it_crowd.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsTheItCrowd < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TheITCrowd
end
def test_actors
assert_match(/\w+/, @tester.actor)
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_emails
assert_match(/\w+/, @tester.email)
end
def test_quotes
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_friends.rb | test/faker/tv_shows/test_friends.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsFriends < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Friends
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_stranger_things.rb | test/faker/tv_shows/test_stranger_things.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsThings < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::StrangerThings
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_quotes
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_south_park.rb | test/faker/tv_shows/test_south_park.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSouthPark < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::SouthPark
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_episode_name
assert_match(/\w+/, @tester.episode_name)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_the_office.rb | test/faker/tv_shows/test_the_office.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsTheOffice < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TheOffice
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_quotes
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_brooklyn_nine_nine.rb | test/faker/tv_shows/test_brooklyn_nine_nine.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsBrooklynNineNine < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::BrooklynNineNine
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_parks_and_rec.rb | test/faker/tv_shows/test_parks_and_rec.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsParksAndRec < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::ParksAndRec
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_city
assert_match(/\w+/, @tester.city)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_stargate.rb | test/faker/tv_shows/test_stargate.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsStargate < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Stargate
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_planet
assert_match(/\w+/, @tester.planet)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_michael_scott.rb | test/faker/tv_shows/test_michael_scott.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerMichaelScott < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::MichaelScott
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_new_girl.rb | test/faker/tv_shows/test_new_girl.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsNewGirl < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::NewGirl
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_rick_and_morty.rb | test/faker/tv_shows/test_rick_and_morty.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsRickAndMorty < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::RickAndMorty
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_hey_arnold.rb | test/faker/tv_shows/test_hey_arnold.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsHeyArnold < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::HeyArnold
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_final_space.rb | test/faker/tv_shows/test_final_space.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsFinalSpace < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::FinalSpace
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_vehicle
assert_match(/\w+/, @tester.vehicle)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_simpsons.rb | test/faker/tv_shows/test_simpsons.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSimpsons < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Simpsons
Faker::Config.locale = nil
end
def test_characters
deterministically_verify(-> { @tester.character }) { |result| assert_match(/\w+/, result) }
end
def test_locations
deterministically_verify(-> { @tester.location }) { |result| assert_match(/\w+/, result) }
end
def test_quote
deterministically_verify(-> { @tester.quote }) { |result| assert_match(/\w+/, result) }
end
def test_episode_titles
deterministically_verify(-> { @tester.episode_title }) { |result| assert_match(/\w+/, result) }
end
def test_locales
[nil, 'en', 'de'].each do |_locale_name|
Faker::Config.locale = 'de'
assert_kind_of String, @tester.character
assert_kind_of String, @tester.location
assert_kind_of String, @tester.quote
end
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_buffy.rb | test/faker/tv_shows/test_buffy.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsBuffy < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Buffy
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_actor
assert_match(/\w+/, @tester.actor)
end
def test_big_bad
assert_match(/\w+/, @tester.big_bad)
end
def test_episode
assert_match(/\w+/, @tester.episode)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_how_i_met_your_mother.rb | test/faker/tv_shows/test_how_i_met_your_mother.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsHowIMetYourMother < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::HowIMetYourMother
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_catch_phrase
assert_match(/\w+/, @tester.catch_phrase)
end
def test_high_five
assert_match(/\w+/, @tester.high_five)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_silicon_valley.rb | test/faker/tv_shows/test_silicon_valley.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSiliconValley < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::SiliconValley
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_companies
assert_match(/\w+/, @tester.company)
end
def test_quotes
assert_match(/\w+/, @tester.quote)
end
def test_apps
assert_match(/\w+/, @tester.app)
end
def test_inventions
assert_match(/\w+/, @tester.invention)
end
def test_mottos
assert_match(/\w+/, @tester.motto)
end
def test_urls
assert_match(/\w+/, @tester.url)
end
def test_email
assert_match(/\w+/, @tester.email)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/spongebob.rb | test/faker/tv_shows/spongebob.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSpongebob < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Spongebob
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_episode
assert_match(/\w+/, @tester.episode)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_suits.rb | test/faker/tv_shows/test_suits.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSuits < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Suits
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_dr_who.rb | test/faker/tv_shows/test_dr_who.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsDrWho < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::DrWho
Faker::Config.locale = nil
end
def test_character
deterministically_verify(-> { @tester.character }) { |result| assert_match(/\w+/, result) }
end
def test_the_doctor
deterministically_verify(-> { @tester.the_doctor }) { |result| assert_match(/\w+/, result) }
end
def test_actor
deterministically_verify(-> { @tester.actor }) { |result| assert_match(/\w+/, result) }
end
def test_catch_phrase
deterministically_verify(-> { @tester.catch_phrase }) { |result| assert_match(/\w+/, result) }
end
def test_quote
deterministically_verify(-> { @tester.quote }) { |result| assert_match(/\w+/, result) }
end
def test_villain
deterministically_verify(-> { @tester.villain }) { |result| assert_match(/\w+/, result) }
end
def test_specie
deterministically_verify(-> { @tester.specie }) { |result| assert_match(/\w+/, result) }
end
def test_locales
[nil, 'en', 'de'].each do |_locale_name|
Faker::Config.locale = 'de'
assert_kind_of String, @tester.character
assert_kind_of String, @tester.the_doctor
assert_kind_of String, @tester.catch_phrase
assert_kind_of String, @tester.quote
assert_kind_of String, @tester.villain
assert_kind_of String, @tester.specie
end
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_archer.rb | test/faker/tv_shows/test_archer.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsArcher < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Archer
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_locations
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_community.rb | test/faker/tv_shows/test_community.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsCommunity < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Community
end
def test_character
assert_match(/\w/, @tester.characters)
end
def test_quote
assert_match(/\w/, @tester.quotes)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_supernatural.rb | test/faker/tv_shows/test_supernatural.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsSupernatural < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::Supernatural
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_creature
assert_match(/\w+/, @tester.creature)
end
def test_weapon
assert_match(/\w+/, @tester.weapon)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_aqua_teen_hunger_force.rb | test/faker/tv_shows/test_aqua_teen_hunger_force.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsAquaTeenHungerForce < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::AquaTeenHungerForce
end
def test_character
assert_match(/\w/, @tester.character)
end
def test_quote
assert_match(/\w/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_big_bang_theory.rb | test/faker/tv_shows/test_big_bang_theory.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsBigBangTheory < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::BigBangTheory
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_game_of_thrones.rb | test/faker/tv_shows/test_game_of_thrones.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsGameOfThrones < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::GameOfThrones
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_house
assert_match(/\w+/, @tester.house)
end
def test_city
assert_match(/\w+/, @tester.city)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_dragon
assert_match(/\w+/, @tester.dragon)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_the_expanse.rb | test/faker/tv_shows/test_the_expanse.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsTheExpanse < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::TheExpanse
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_location
assert_match(/\w+/, @tester.location)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
def test_ship
assert_match(/\w+/, @tester.ship)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_venture_bros.rb | test/faker/tv_shows/test_venture_bros.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsVentureBros < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::VentureBros
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_vehicle
assert_match(/\w+/, @tester.vehicle)
end
def test_organization
assert_match(/\w+/, @tester.organization)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_star_trek.rb | test/faker/tv_shows/test_star_trek.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsStarTrek < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::StarTrek
end
def test_characters
assert_match(/\w+/, @tester.character)
end
def test_locations
assert_match(/\w+/, @tester.location)
end
def test_species
assert_match(/\w+/, @tester.specie)
end
def test_villains
assert_match(/\w+/, @tester.villain)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_bojack_horseman.rb | test/faker/tv_shows/test_bojack_horseman.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsBojackHorseman < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::BojackHorseman
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_tongue_twister
assert_match(/\w+/, @tester.tongue_twister)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/tv_shows/test_dumb_and_dumber.rb | test/faker/tv_shows/test_dumb_and_dumber.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTvShowsDumbAndDumber < Test::Unit::TestCase
def setup
@tester = Faker::TvShows::DumbAndDumber
end
def test_actor
assert_match(/\w+/, @tester.actor)
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/movies/test_faker_hackers.rb | test/faker/movies/test_faker_hackers.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerHackers < Test::Unit::TestCase
def setup
@tester = Faker::Movies::Hackers
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_handle
assert_match(/\w+/, @tester.handle)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/movies/test_faker_v_for_vendetta.rb | test/faker/movies/test_faker_v_for_vendetta.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerVForVendetta < Test::Unit::TestCase
def setup
@tester = Faker::Movies::VForVendetta
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_speech
assert_match(/\w+/, @tester.speech)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/movies/test_faker_back_to_the_future.rb | test/faker/movies/test_faker_back_to_the_future.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerBackToTheFuture < Test::Unit::TestCase
def setup
@tester = Faker::Movies::BackToTheFuture
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_date
assert_match(/\w+/, @tester.date)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
faker-ruby/faker | https://github.com/faker-ruby/faker/blob/a4d5e503edda970fc085e942018ee235622bfb11/test/faker/movies/test_faker_movies_ghostbusters.rb | test/faker/movies/test_faker_movies_ghostbusters.rb | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerMoviesGhostbusters < Test::Unit::TestCase
def setup
@tester = Faker::Movies::Ghostbusters
end
def test_actor
assert_match(/\w+/, @tester.actor)
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_quote
assert_match(/\w+/, @tester.quote)
end
end
| ruby | MIT | a4d5e503edda970fc085e942018ee235622bfb11 | 2026-01-04T15:37:50.353881Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.