source stringclasses 1
value | repo stringlengths 5 63 | repo_url stringlengths 24 82 | path stringlengths 5 167 | language stringclasses 1
value | license stringclasses 5
values | stars int64 10 51.4k | ref stringclasses 23
values | size_bytes int64 200 258k | text stringlengths 137 258k |
|---|---|---|---|---|---|---|---|---|---|
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_computer.rb | Ruby | mit | 11,598 | main | 794 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerComputer < Test::Unit::TestCase
def setup
@tester = Faker::Computer
@platforms = Faker::Base.fetch_all('computer.platform')
end
def test_type
assert_match(/\w+/, @tester.type)
end
def test_platform
assert_mat... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_time.rb | Ruby | mit | 11,598 | main | 4,782 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerTime < Test::Unit::TestCase
TEN_HOURS = 36_000
def setup
@tester = Faker::Time
@time_ranges = Faker::Time::TIME_RANGES
end
def test_between_with_time_parameters
from = Time.at(0)
to = Time.at(2_145_945_6... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_music.rb | Ruby | mit | 11,598 | main | 1,366 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerMusic < Test::Unit::TestCase
def setup
@tester = Faker::Music
end
def test_keys
# rubocop:disable Style/HashEachMethods
assert_equal(7, @tester.keys.size)
@tester.keys.each do |key|
refute_empty key.to_s
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_string.rb | Ruby | mit | 11,598 | main | 1,555 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerString < Test::Unit::TestCase
def setup
@tester = Faker::String
end
def teardown
@tester = nil
end
def test_is_string
assert_kind_of String, @tester.random
end
def test_has_valid_encoding
assert_predicat... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_city.rb | Ruby | mit | 11,598 | main | 1,610 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCity < Test::Unit::TestCase
def setup
@old_locales = I18n.config.available_locales
xx = {
faker: {
name: { female_first_name: ['alice'], male_first_name: ['alice'], last_name: ['smith'] },
address: { city... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_appliance.rb | Ruby | mit | 11,598 | main | 302 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerAppliance < Test::Unit::TestCase
def setup
@tester = Faker::Appliance
end
def test_brand
assert_match(/\w/, @tester.brand)
end
def test_equipment
assert_match(/\w/, @tester.equipment)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_http.rb | Ruby | mit | 11,598 | main | 1,074 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerInternetHTTP < Test::Unit::TestCase
def setup
@tester = Faker::Internet::HTTP
end
def test_status_code
assert_match(/^[1-5]\d{2}$/, @tester.status_code.to_s)
end
def test_information_status_code
assert_match(/^1\... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_slack_emoji.rb | Ruby | mit | 11,598 | main | 951 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerSlackEmoji < Test::Unit::TestCase
def setup
@tester = Faker::SlackEmoji
@emoticon_regex = /^:([\w-]+):$/
end
def test_people
assert_match @emoticon_regex, @tester.people
end
def test_nature
assert_match @emot... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_quote.rb | Ruby | mit | 11,598 | main | 873 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerQuote < 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_json.rb | Ruby | mit | 11,598 | main | 1,449 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJson < Test::Unit::TestCase
require 'json'
def test_simple_json_lenght
expected_result_length = JSON.parse(simple_json).flatten.length
assert_same(expected_result_length, 6)
end
def test_nested_json_length
result ... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_phone_number.rb | Ruby | mit | 11,598 | main | 1,619 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerPhone < Test::Unit::TestCase
def setup
@tester = Faker::PhoneNumber
@phone_with_country_code_regex = /\A\+(\s|\d|-|\(|\)|x|\.)*\z/
end
def test_phone_number_min_1_max_3_length
assert_match(/^\+\d{1,3}$/, @tester.count... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_emotion.rb | Ruby | mit | 11,598 | main | 298 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerEmotion < Test::Unit::TestCase
def setup
@tester = Faker::Emotion
end
def test_noun
assert_match(/\w+/, @tester.noun)
end
def test_adjective
assert_match(/\w+/, @tester.adjective)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_app.rb | Ruby | mit | 11,598 | main | 1,907 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerApp < Test::Unit::TestCase
def setup
@tester = Faker::App
end
def test_name
assert_match(/(\w+\.? ?){2,3}/, @tester.author)
end
def test_basic_semantic_version
deterministically_verify -> { @tester.semantic_versi... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_job.rb | Ruby | mit | 11,598 | main | 457 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerJob < Test::Unit::TestCase
def setup
@tester = Faker::Job
end
def test_title
assert_match(/(\w+\.? ?){2,3}/, @tester.title)
end
def test_field
assert_match(/(\w+\.? ?)/, @tester.field)
end
def test_key_skill... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_date.rb | Ruby | mit | 11,598 | main | 7,345 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerDate < Test::Unit::TestCase
def setup
@tester = Faker::Date
end
def test_between
from = Date.parse('2012-01-01')
to = Date.parse('2013-01-01')
deterministically_verify -> { @tester.between(from: from, to: to) }... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/default/test_faker_house.rb | Ruby | mit | 11,598 | main | 294 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerHouse < Test::Unit::TestCase
def setup
@tester = Faker::House
end
def test_furniture
assert_match(/\w+/, @tester.furniture)
end
def test_room
assert_match(/\w+/, @tester.room)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_friends.rb | Ruby | mit | 11,598 | main | 385 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_futurama.rb | Ruby | mit | 11,598 | main | 691 | # 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_loc... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_bojack_horseman.rb | Ruby | mit | 11,598 | main | 411 | # 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+/, @teste... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_big_bang_theory.rb | Ruby | mit | 11,598 | main | 328 | # 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)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_venture_bros.rb | Ruby | mit | 11,598 | main | 468 | # 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)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_spongebob.rb | Ruby | mit | 11,598 | main | 387 | # 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
d... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_breaking_bad.rb | Ruby | mit | 11,598 | main | 454 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_twin_peaks.rb | Ruby | mit | 11,598 | main | 389 | # 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)
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_stranger_things.rb | Ruby | mit | 11,598 | main | 324 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_how_i_met_your_mother.rb | Ruby | mit | 11,598 | main | 484 | # 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+/, @t... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_rick_and_morty.rb | Ruby | mit | 11,598 | main | 395 | # 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... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_the_office.rb | Ruby | mit | 11,598 | main | 322 | # 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
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_family_guy.rb | Ruby | mit | 11,598 | main | 386 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_the_thick_of_it.rb | Ruby | mit | 11,598 | main | 405 | # 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.depart... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_dr_who.rb | Ruby | mit | 11,598 | main | 1,450 | # 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)... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_the_fresh_prince_of_bel_air.rb | Ruby | mit | 11,598 | main | 409 | # 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+/,... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_star_trek.rb | Ruby | mit | 11,598 | main | 460 | # 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)
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_supernatural.rb | Ruby | mit | 11,598 | main | 397 | # 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... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_community.rb | Ruby | mit | 11,598 | main | 320 | # 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 |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_dumb_and_dumber.rb | Ruby | mit | 11,598 | main | 391 | # 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)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_aqua_teen_hunger_force.rb | Ruby | mit | 11,598 | main | 338 | # 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... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_seinfeld.rb | Ruby | mit | 11,598 | main | 384 | # 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... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_hey_arnold.rb | Ruby | mit | 11,598 | main | 389 | # 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)
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_final_space.rb | Ruby | mit | 11,598 | main | 389 | # 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)
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_game_of_thrones.rb | Ruby | mit | 11,598 | main | 517 | # 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)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_ru_paul.rb | Ruby | mit | 11,598 | main | 301 | # 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 |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_the_expanse.rb | Ruby | mit | 11,598 | main | 452 | # 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)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_the_it_crowd.rb | Ruby | mit | 11,598 | main | 452 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_silicon_valley.rb | Ruby | mit | 11,598 | main | 718 | # 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.comp... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_south_park.rb | Ruby | mit | 11,598 | main | 397 | # 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
d... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_brooklyn_nine_nine.rb | Ruby | mit | 11,598 | main | 334 | # 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.quo... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_new_girl.rb | Ruby | mit | 11,598 | main | 316 | # 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 |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_simpsons.rb | Ruby | mit | 11,598 | main | 962 | # 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+/, ... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_stargate.rb | Ruby | mit | 11,598 | main | 383 | # 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
d... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_buffy.rb | Ruby | mit | 11,598 | main | 509 | # 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_... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_michael_scott.rb | Ruby | mit | 11,598 | main | 248 | # 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 |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_archer.rb | Ruby | mit | 11,598 | main | 385 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_suits.rb | Ruby | mit | 11,598 | main | 312 | # 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 |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/tv_shows/test_parks_and_rec.rb | Ruby | mit | 11,598 | main | 322 | # 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
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/quotes/test_faker_rajnikanth.rb | Ruby | mit | 11,598 | main | 242 | # 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 |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/quotes/test_faker_shakespeare.rb | Ruby | mit | 11,598 | main | 546 | # 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_mat... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/quotes/test_faker_chiquito.rb | Ruby | mit | 11,598 | main | 440 | # 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_jo... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/travel/test_faker_train_station.rb | Ruby | mit | 11,598 | main | 1,060 | # 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(regi... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/travel/test_faker_airports.rb | Ruby | mit | 11,598 | main | 648 | # 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.... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_rock_band.rb | Ruby | mit | 11,598 | main | 297 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerRockBand < Test::Unit::TestCase
def setup
@tester = Faker::Music::RockBand
end
def test_name
assert_match(/\w+/, @tester.name)
end
def test_song
assert_match(/\w+/, @tester.song)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_prince.rb | Ruby | mit | 11,598 | main | 419 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerPRince < Test::Unit::TestCase
def setup
@tester = Faker::Music::Prince
end
def test_song
assert_match(/\w+/, @tester.song)
end
def test_lyric
assert_match(/\w+/, @tester.lyric)
end
def test_album
assert_... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_smashing_pumpkins.rb | Ruby | mit | 11,598 | main | 444 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerSmashingPumpkins < Test::Unit::TestCase
def setup
@tester = Faker::Music::SmashingPumpkins
end
def test_album
assert_match(/\w/, @tester.album)
end
def test_lyric
assert_match(/\w+/, @tester.lyric)
end
def t... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_opera.rb | Ruby | mit | 11,598 | main | 1,591 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerOpera < Test::Unit::TestCase
def setup
@tester = Faker::Music::Opera
end
def verdi
assert_match(/\w+/i, @tester.verdi)
end
def rossini
assert_match(/\w+/i, @tester.rossini)
end
def donizetti
assert_match... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_phish.rb | Ruby | mit | 11,598 | main | 362 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerPhish < Test::Unit::TestCase
def setup
@tester = Faker::Music::Phish
end
def test_album
assert_match(/\w+/, @tester.album)
end
def test_musician
assert_match(/\w+/, @tester.musician)
end
def test_song
as... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_umphreys_mcgee.rb | Ruby | mit | 11,598 | main | 246 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerUmphreysMcgee < Test::Unit::TestCase
def setup
@tester = Faker::Music::UmphreysMcgee
end
def test_song
assert_match(/\w+/, @tester.song)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_pearl_jam.rb | Ruby | mit | 11,598 | main | 365 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerPearlJam < Test::Unit::TestCase
def setup
@tester = Faker::Music::PearlJam
end
def test_musician
assert_match(/\w/, @tester.musician)
end
def test_album
assert_match(/\w/, @tester.album)
end
def test_song
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_grateful_dead.rb | Ruby | mit | 11,598 | main | 307 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerGratefulDead < Test::Unit::TestCase
def setup
@tester = Faker::Music::GratefulDead
end
def test_player
assert_match(/\w/, @tester.player)
end
def test_song
assert_match(/\w/, @tester.song)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_rush.rb | Ruby | mit | 11,598 | main | 295 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerRush < Test::Unit::TestCase
def setup
@tester = Faker::Music::Rush
end
def test_player
assert_match(/\w+/, @tester.player)
end
def test_album
assert_match(/\w+/, @tester.album)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_hiphop.rb | Ruby | mit | 11,598 | main | 372 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerHiphop < Test::Unit::TestCase
def setup
@tester = Faker::Music::Hiphop
end
def test_artist
assert_match(/\w+/, @tester.artist)
end
def test_groups
assert_match(/\w+/, @tester.groups)
end
def test_subgenres
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/music/test_faker_bossa_nova.rb | Ruby | mit | 11,598 | main | 305 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerBossaNova < Test::Unit::TestCase
def setup
@tester = Faker::Music::BossaNova
end
def test_artists
assert_match(/\w+/, @tester.artist)
end
def test_songs
assert_match(/\w+/, @tester.song)
end
end |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/locations/test_faker_australia.rb | Ruby | mit | 11,598 | main | 386 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/books/test_faker_dune.rb | Ruby | mit | 11,598 | main | 1,095 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerDune < Test::Unit::TestCase
def setup
@tester = Faker::Books::Dune
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_title
assert_match(/\w+/, @tester.title)
end
def test_city
as... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/books/test_the_kingkiller_chronicle.rb | Ruby | mit | 11,598 | main | 468 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestTheKingkillerChronicle < Test::Unit::TestCase
def setup
@tester = Faker::Books::TheKingkillerChronicle
end
def test_book
assert_match(/\w+/, @tester.book)
end
def test_character
assert_match(/\w+/, @tester.character)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/books/test_dune.rb | Ruby | mit | 11,598 | main | 560 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerBooksDune < Test::Unit::TestCase
def setup
@tester = Faker::Books::Dune
end
def test_character
assert_match(/\w+/, @tester.character)
end
def test_title
assert_match(/\w+/, @tester.title)
end
def test_planet... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/books/test_faker_culture_series.rb | Ruby | mit | 11,598 | main | 627 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerCultureSeries < Test::Unit::TestCase
def setup
@tester = Faker::Books::CultureSeries
end
def test_book
assert_match(/\w+/, @tester.book)
end
def test_culture_ship
assert_match(/\w+/, @tester.culture_ship)
end
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/books/test_lovecraft.rb | Ruby | mit | 11,598 | main | 3,058 | # frozen_string_literal: true
require_relative '../../test_helper'
class TestFakerBooksLovecraft < Test::Unit::TestCase
def setup
@tester = Faker::Books::Lovecraft
@wordlist = I18n.translate('faker.lovecraft.words')
end
# Words delivered by this request should be on the wordlist.
def test_words
@... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_control.rb | Ruby | mit | 11,598 | main | 763 | # 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 ... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_league_of_legends.rb | Ruby | mit | 11,598 | main | 604 | # 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)
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_dnd.rb | Ruby | mit | 11,598 | main | 1,064 | # 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_cit... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_final_fantasy_xiv.rb | Ruby | mit | 11,598 | main | 516 | # 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 t... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_overwatch.rb | Ruby | mit | 11,598 | main | 370 | # 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... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_elder_scrolls.rb | Ruby | mit | 11,598 | main | 836 | # 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_cit... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_clash_of_clans.rb | Ruby | mit | 11,598 | main | 396 | # 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_defen... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_dota.rb | Ruby | mit | 11,598 | main | 1,323 | # 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 bris... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_myst.rb | Ruby | mit | 11,598 | main | 490 | # 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_... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_tarkov.rb | Ruby | mit | 11,598 | main | 1,294 | # 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+/, @... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_pokemon.rb | Ruby | mit | 11,598 | main | 364 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_fallout.rb | Ruby | mit | 11,598 | main | 438 | # 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_locati... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_heroes_of_the_storm.rb | Ruby | mit | 11,598 | main | 465 | # 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.c... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_witcher.rb | Ruby | mit | 11,598 | main | 772 | # 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 t... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_minecraft.rb | Ruby | mit | 11,598 | main | 750 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_super_smash_bros.rb | Ruby | mit | 11,598 | main | 322 | # 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
en... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_warhammer_fantasy.rb | Ruby | mit | 11,598 | main | 521 | # 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... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_heroes.rb | Ruby | mit | 11,598 | main | 435 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_street_fighter.rb | Ruby | mit | 11,598 | main | 443 | # 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
de... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_super_mario.rb | Ruby | mit | 11,598 | main | 380 | # 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_l... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_zelda.rb | Ruby | mit | 11,598 | main | 443 | # 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_locat... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_world_of_warcraft.rb | Ruby | mit | 11,598 | main | 447 | # 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
... |
github | faker-ruby/faker | https://github.com/faker-ruby/faker | test/faker/games/test_faker_sonic_the_hedgehog.rb | Ruby | mit | 11,598 | main | 389 | # 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)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.