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/test_sk_locale.rb
Ruby
mit
11,598
main
1,960
# frozen_string_literal: true require_relative 'test_helper' class TestSKLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'sk' end def teardown Faker::Config.locale = nil end def test_sk_address_methods assert_kind_of String, Faker::Address.city_prefix assert_kind_of String, ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_nz_locale.rb
Ruby
mit
11,598
main
1,350
# frozen_string_literal: true require_relative 'test_helper' class TestEnNzLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-NZ' end def teardown Faker::Config.locale = nil end def test_en_nz_address_methods assert_kind_of String, Faker::Address.street_name assert_kind_of ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ru_locale.rb
Ruby
mit
11,598
main
2,087
# frozen_string_literal: true require_relative 'test_helper' class TestRuLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'ru' end def teardown Faker::Config.locale = nil end def test_ru_address_methods assert_kind_of String, Faker::Address.country assert_kind_of String, Fake...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_ug_locale.rb
Ruby
mit
11,598
main
1,263
# frozen_string_literal: true require_relative 'test_helper' class TestEnUgLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'en-UG' end def teardown Faker::Config.locale = @previous_locale end def test_en_ug_address_methods assert_kind_...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_es_mx_locale.rb
Ruby
mit
11,598
main
2,376
# frozen_string_literal: true require_relative 'test_helper' class TestEsMxLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'es-MX' end def teardown Faker::Config.locale = nil end def test_es_mx_address assert_kind_of String, Faker::Address.street_prefix assert_kind_of String...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_flexible.rb
Ruby
mit
11,598
main
1,981
# frozen_string_literal: true require_relative 'test_helper' module Faker class Foodie < Base flexible :chow end end class TestFlexible < Test::Unit::TestCase def setup @old_locales = I18n.config.available_locales I18n.config.available_locales += %i[xx home kindergarden work] I18n.backend.store...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_nb_no_locale.rb
Ruby
mit
11,598
main
1,918
# frozen_string_literal: true require_relative 'test_helper' class TestNbNoLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'nb-NO' end def teardown Faker::Config.locale = nil end def test_nb_no_address_methods assert_kind_of String, Faker::Address.city_root assert_kind_of St...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_locale.rb
Ruby
mit
11,598
main
2,674
# frozen_string_literal: true require_relative 'test_helper' LoadedYaml = %w[en en-BORK].to_h do |locale| [locale, YAML.load_file(File.expand_path(File.dirname(__FILE__) + "/../lib/locales/#{locale}.yml"))[locale]['faker']] end class TestLocale < Test::Unit::TestCase def teardown Faker::Config.locale = nil ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_au_ocker_locale.rb
Ruby
mit
11,598
main
1,510
# frozen_string_literal: true require_relative 'test_helper' class TestEnAuOckerLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-au-ocker' end def teardown Faker::Config.locale = nil end def test_en_au_address_methods assert_kind_of String, Faker::Address.street_name asse...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_th_locale.rb
Ruby
mit
11,598
main
345
# frozen_string_literal: true require_relative 'test_helper' class TestThLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'th' end def teardown Faker::Config.locale = nil end def test_th_name_methods assert_kind_of String, Faker::Name.first_name assert_kind_of String, Faker::...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ee_locale.rb
Ruby
mit
11,598
main
2,426
# frozen_string_literal: true require_relative 'test_helper' class TestEeLocale < Test::Unit::TestCase def setup @valid_phone_prefixes = %w[32 33 35 38 39 43 44 45 46 47 48 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79 88].sort @valid_cell_phone_prefixes = %w[5 8].sort...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_fr_locale.rb
Ruby
mit
11,598
main
5,295
# frozen_string_literal: true require_relative 'test_helper' class TestFrLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'fr' end def teardown Faker::Config.locale = @previous_locale end def test_fr_address_methods assert_kind_of Strin...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ca_cat_locale.rb
Ruby
mit
11,598
main
1,198
# frozen_string_literal: true require_relative 'test_helper' class TestCaCatLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'ca-CAT' end def teardown Faker::Config.locale = nil end def test_ca_cat_address_methods assert_kind_of String, Faker::Address.city assert_kind_of Stri...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_fr_ch_locale.rb
Ruby
mit
11,598
main
2,581
# frozen_string_literal: true require_relative 'test_helper' class TestFrChLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'fr-CH' end def teardown Faker::Config.locale = @previous_locale end def test_fr_ch_address_methods assert_kind...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_es_ar_locale.rb
Ruby
mit
11,598
main
9,546
# frozen_string_literal: true require_relative 'test_helper' class TestEsArLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'es-AR' @no_words_pattern = /(?u:\w{0})$/ @one_word_pattern = /(?u:\w+)/ @one_or_more_words_pattern = /(?u:(?:\w+\ )*\w+)/ @many_words_pattern = /(?u:(?:\w+\...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_faker.rb
Ruby
mit
11,598
main
4,534
# frozen_string_literal: true require_relative 'test_helper' require_relative 'support/mock_env' module Faker class TestFake def self.a_class_method 'called a_class_method' end end end class TestFaker < Test::Unit::TestCase def setup; end def test_numerify deterministically_verify -> { Fak...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_pt_locale.rb
Ruby
mit
11,598
main
1,347
# frozen_string_literal: true require_relative 'test_helper' class TestPtLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'pt' end def teardown Faker::Config.locale = nil end def test_pt_address_methods assert_match(/^[[:word:]]+[.]? \d{1,3}$/, Faker::Address.secondary_address) ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_pak_locale.rb
Ruby
mit
11,598
main
1,236
# frozen_string_literal: true require_relative 'test_helper' class TestEnPakLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'en-PAK' end def teardown Faker::Config.locale = @previous_locale end def test_en_pak_methods assert_kind_of St...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ar_locale.rb
Ruby
mit
11,598
main
2,663
# frozen_string_literal: true require_relative 'test_helper' class TestArLocale < Test::Unit::TestCase def setup Faker::Config.locale = :ar end def teardown Faker::Config.locale = nil end def test_ar_address_methods assert_kind_of String, Faker::Address.country assert_kind_of String, Faker...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_de_at_locale.rb
Ruby
mit
11,598
main
1,777
# frozen_string_literal: true require_relative 'test_helper' class TestDeAtLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'de-AT' end def teardown Faker::Config.locale = nil end def test_de_at_address_methods assert_kind_of String, Faker::Address.country assert_kind_of Stri...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_hy_locale.rb
Ruby
mit
11,598
main
6,456
# frozen_string_literal: true require_relative 'test_helper' class TestHyLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'hy' end def teardown Faker::Config.locale = nil end def test_hy_address_methods assert_kind_of String, Faker::Address.country assert_equal 'Ամերիկայի Միա...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_mi_nz_locale.rb
Ruby
mit
11,598
main
764
# frozen_string_literal: true require_relative 'test_helper' class TestMaNzLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'mi-NZ' end def teardown Faker::Config.locale = nil end def test_mi_nz_address_methods assert_kind_of String, Faker::Address.street_name assert_kind_of ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ko_locale.rb
Ruby
mit
11,598
main
3,943
# frozen_string_literal: true require_relative 'test_helper' class TestKoLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'ko' end def teardown Faker::Config.locale = nil end def test_ko_address_methods assert_kind_of String, Faker::Address.postcode assert_equal(5, Faker::Add...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_pt_br_locale.rb
Ruby
mit
11,598
main
5,376
# frozen_string_literal: true require_relative 'test_helper' class TestPtBrLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'pt-BR' end def teardown Faker::Config.locale = nil end def test_pt_br_address_methods assert_kind_of String, Faker::Address.city assert_kind_of String...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_bg_locale.rb
Ruby
mit
11,598
main
1,650
# frozen_string_literal: true require_relative 'test_helper' class TestBgLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'bg' end def teardown Faker::Config.locale = nil end def test_bg_methods assert_kind_of String, Faker::Address.country assert_kind_of String, Faker::Addre...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_id_locale.rb
Ruby
mit
11,598
main
1,174
# frozen_string_literal: true require_relative 'test_helper' class TestIdLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'id' end def teardown Faker::Config.locale = @previous_locale end def test_id_address_methods assert_kind_of Strin...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_no_no_locale.rb
Ruby
mit
11,598
main
991
# frozen_string_literal: true require File.expand_path("#{File.dirname(__FILE__)}/test_helper.rb") class TestNoNOLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'no-NO' end def teardown Faker::Config.locale = nil end def test_no_no_name_methods assert_kind_of String, Faker::Name...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_vi_locale.rb
Ruby
mit
11,598
main
1,416
# frozen_string_literal: true require_relative 'test_helper' class TestViLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'vi' end def teardown Faker::Config.locale = nil end def test_vi_address_methods assert_kind_of String, Faker::Add...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_th_locale.rb
Ruby
mit
11,598
main
353
# frozen_string_literal: true require_relative 'test_helper' class TestEnThLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-TH' end def teardown Faker::Config.locale = nil end def test_en_th_name_methods assert_kind_of String, Faker::Name.first_name assert_kind_of String,...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_lv_locale.rb
Ruby
mit
11,598
main
1,842
# frozen_string_literal: true require_relative 'test_helper' class TestLvLocale < Test::Unit::TestCase def setup @phone_prefixes = %w[51 52 53 54 55 56 57 58 59 61 62 63 64 65 66 67 68 69 71 72 73 74 75 76 77 78 79].sort @cell_prefixes = %w[21 22 23 24 25 26 27 28 29].sort @pre...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_default_locale.rb
Ruby
mit
11,598
main
2,478
# frozen_string_literal: true require_relative 'test_helper' class TestDefaultLocale < Test::Unit::TestCase def test_setting_default_locale # if locale is not set, fallback is :en assert_equal :en, Faker::Config.locale # locale can be updated initially # and it becomes the default value # for n...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_ke_locale.rb
Ruby
mit
11,598
main
1,048
# frozen_string_literal: true require_relative 'test_helper' class TestEnKeLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-KE' end def teardown Faker::Config.locale = nil end def test_en_ke_address_methods assert_kind_of String, Faker::Address.city assert_kind_of String,...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_pl_locale.rb
Ruby
mit
11,598
main
2,525
# frozen_string_literal: true require_relative 'test_helper' class TestPlLocale < Test::Unit::TestCase def setup @phone_prefixes = %w[12 13 14 15 16 17 18 22 23 24 25 29 32 33 34 41 42 43 44 46 48 52 54 55 56 58 59 61 62 63 65 67 68 71 74 75 76 77 81 82 83 84 85 86 87 89 91 94 95].sort @cell_prefixes = %w[5...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_he_locale.rb
Ruby
mit
11,598
main
929
# frozen_string_literal: true require_relative 'test_helper' class TestHeLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'he' end def teardown Faker::Config.locale = nil end def test_he_address_methods assert_kind_of String, Faker::Address.city_prefix assert_kind_of String, ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_gb_locale.rb
Ruby
mit
11,598
main
2,439
# frozen_string_literal: true require_relative 'test_helper' class TestEnGbLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'en-GB' end def teardown Faker::Config.locale = @previous_locale end def test_en_gb_address_methods assert_kind_...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_fi_locale.rb
Ruby
mit
11,598
main
1,641
# frozen_string_literal: true require_relative 'test_helper' class TestFiLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'fi-FI' end def teardown Faker::Config.locale = nil end def test_fi_address_methods assert_kind_of String, Faker::Address.street_name assert_kind_of Strin...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_us_locale.rb
Ruby
mit
11,598
main
3,457
# frozen_string_literal: true require_relative 'test_helper' class TestEnUsLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-US' end def teardown Faker::Config.locale = nil end def test_en_us_internet_methods assert_kind_of String, Faker::Internet.domain_suffix end def te...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_za_locale.rb
Ruby
mit
11,598
main
1,096
# frozen_string_literal: true require_relative 'test_helper' class TestEnZaLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-ZA' end def teardown Faker::Config.locale = nil end def test_en_za_address_methods assert_kind_of String, Faker::Address.country_code assert_kind_of...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ca_locale.rb
Ruby
mit
11,598
main
747
# frozen_string_literal: true require_relative 'test_helper' class TestCaLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'ca' end def teardown Faker::Config.locale = nil end def test_ca_color_methods assert_kind_of String, Faker::Color.color_name end def test_ca_name_method...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_determinism.rb
Ruby
mit
11,598
main
2,265
# frozen_string_literal: true require 'minitest/mock' require_relative 'test_helper' # rubocop:disable Security/Eval,Style/EvalWithLocation class TestDeterminism < Test::Unit::TestCase def setup @all_methods = all_methods.freeze @first_run = [] end def test_determinism Faker::Config.random = Random...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_de_locale.rb
Ruby
mit
11,598
main
4,615
# frozen_string_literal: true require_relative 'test_helper' class TestDeLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'de' end def teardown Faker::Config.locale = nil end def test_de_address_methods assert_kind_of String, Faker::Address.city_prefix assert_kind_of String, ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_helper.rb
Ruby
mit
11,598
main
1,423
# frozen_string_literal: true require 'simplecov' require 'simplecov_json_formatter' SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter SimpleCov.start do add_filter ['.bundle', 'lib/extensions', 'test'] end require_relative 'support/assert_not_english' require_relative 'support/assert_email_regex' require...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_zh_cn_locale.rb
Ruby
mit
11,598
main
1,611
# frozen_string_literal: true require_relative 'test_helper' class TestZhCnLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'zh-CN' end def teardown Faker::Config.locale = nil end def test_zh_cn_address_methods assert_kind_of String, Faker::Address.city_prefix assert_kind_of ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_sg_locale.rb
Ruby
mit
11,598
main
1,239
# frozen_string_literal: true require_relative 'test_helper' class TestEnSgLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'en-SG' end def teardown Faker::Config.locale = @previous_locale end def test_en_sg_address_methods assert_kind_...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_da_dk_locale.rb
Ruby
mit
11,598
main
2,144
# frozen_string_literal: true require_relative 'test_helper' class TestDaDkLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'da-DK' end def teardown Faker::Config.locale = nil end def test_da_dk_address_methods assert_kind_of String, Faker::Address.street_name assert_kind_of ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_uk_locale.rb
Ruby
mit
11,598
main
1,690
# frozen_string_literal: true require_relative 'test_helper' class TestUkLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'uk' end def teardown Faker::Config.locale = @previous_locale end def test_uk_zipcode_length assert_match(/^\d{5}$...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_zh_tw_locale.rb
Ruby
mit
11,598
main
1,105
# frozen_string_literal: true require_relative 'test_helper' class TestZhLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'zh-TW' end def teardown Faker::Config.locale = nil end def test_zh_tw_address_methods assert_kind_of String, Faker::Address.postcode assert_kind_of Strin...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_fa_locale.rb
Ruby
mit
11,598
main
442
# frozen_string_literal: true require_relative 'test_helper' class TestFaLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'fa' end def teardown Faker::Config.locale = nil end def test_fa_methods assert_kind_of String, Faker::Name.first_name assert_kind_of String, Faker::Name....
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_de_ch_locale.rb
Ruby
mit
11,598
main
804
# frozen_string_literal: true require_relative 'test_helper' class TestDeChLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'de-CH' end def teardown Faker::Config.locale = nil end def test_de_ch_address_methods assert_kind_of String, Faker::Address.country_code assert_kind_of...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_seeding.rb
Ruby
mit
11,598
main
699
# frozen_string_literal: true require_relative 'test_helper' class TestSeeding < Test::Unit::TestCase def setup; end def test_deterministic Faker::Config.random = Random.new(5) first_random = Faker::Number.number(digits: 100_000) Faker::Config.random = Random.new(5) second_random = Faker::Number....
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_ng_locale.rb
Ruby
mit
11,598
main
1,139
# frozen_string_literal: true require_relative 'test_helper' class TestEnNgLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'en-NG' end def teardown Faker::Config.locale = @previous_locale end def test_en_ng_address_methods assert_kind_...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_i18n_reload.rb
Ruby
mit
11,598
main
962
# frozen_string_literal: true require 'test_helper' require 'open3' class TestI18nLoad < Test::Unit::TestCase def test_faker_i18n # run this code in a subshell to test require faker # and proper initialization of i18n. code = <<-RUBY require 'bundler/inline' require 'test/unit' gemfil...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_au_locale.rb
Ruby
mit
11,598
main
968
# frozen_string_literal: true require_relative 'test_helper' class TestEnAuLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'en-AU' end def teardown Faker::Config.locale = nil end def test_en_au_address_methods assert_kind_of String, Faker::Address.street_name assert_kind_of ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_it_locale.rb
Ruby
mit
11,598
main
2,094
# frozen_string_literal: true require_relative 'test_helper' class TestItLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'it' end def teardown Faker::Config.locale = nil end def test_it_address_methods assert_kind_of String, Faker::Address.city_prefix assert_kind_of String, ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_sv_locale.rb
Ruby
mit
11,598
main
2,576
# frozen_string_literal: true require_relative 'test_helper' class TestSVLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'sv' end def teardown Faker::Config.locale = nil end def test_address_methods assert_match(/^\d{5}$/, Faker::Address.postcode) assert_kind_of String, Fake...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_en_ms_locale.rb
Ruby
mit
11,598
main
1,641
# frozen_string_literal: true require_relative 'test_helper' class TestEnMsLocale < Test::Unit::TestCase def setup @previous_locale = Faker::Config.locale Faker::Config.locale = 'en-MS' end def teardown Faker::Config.locale = @previous_locale end def test_en_ms_address_methods assert_kind_...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_tr_locale.rb
Ruby
mit
11,598
main
1,288
# frozen_string_literal: true require_relative 'test_helper' class TestTRLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'tr' end def teardown Faker::Config.locale = nil end def test_tr_address_fields assert_kind_of String, Faker::Address.city assert_kind_of String, Faker::A...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_es_locale.rb
Ruby
mit
11,598
main
3,692
# frozen_string_literal: true require_relative 'test_helper' LoadedEsYaml = %w[en es].to_h do |locale| [locale, YAML.load_file(File.expand_path(File.dirname(__FILE__) + "/../lib/locales/#{locale}.yml"))[locale]['faker']] end class TestEsLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'es' en...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/test_ja_locale.rb
Ruby
mit
11,598
main
10,125
# frozen_string_literal: true require_relative 'test_helper' class TestJaLocale < Test::Unit::TestCase def setup Faker::Config.locale = 'ja' end def teardown Faker::Config.locale = nil end def test_ja_address_methods assert_kind_of String, Faker::Address.postcode assert_match(/\A\d{3}-\d{4...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/sports/test_faker_football.rb
Ruby
mit
11,598
main
509
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/sports/test_faker_volleyball.rb
Ruby
mit
11,598
main
509
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/sports/test_faker_basketball.rb
Ruby
mit
11,598
main
438
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/sports/test_faker_chess.rb
Ruby
mit
11,598
main
832
# 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_tour...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/sports/test_faker_mountaineering.rb
Ruby
mit
11,598
main
263
# 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
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/blockchain/test_aeternity.rb
Ruby
mit
11,598
main
530
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerAeternity < Test::Unit::TestCase def setup @tester = Faker::Blockchain::Aeternity end def test_address assert_match(/ak_([0-9a-zA-Z]{50}$)/, @tester.address) end def test_transaction assert_match(/th_([0-9a-zA-Z]...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/blockchain/test_bitcoin.rb
Ruby
mit
11,598
main
652
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerBitcoin < Test::Unit::TestCase def test_address assert_match(/^[13][1-9A-Za-z][^OIl]{20,40}/, Faker::Blockchain::Bitcoin.address) end def test_deterministic_address Faker::Config.random = Random.new(42) v = Faker::Blo...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/blockchain/test_ethereum.rb
Ruby
mit
11,598
main
263
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerEthereum < Test::Unit::TestCase def setup @tester = Faker::Blockchain::Ethereum end def test_address assert_match(/0x([a-fA-F0-9]{40})/, @tester.address) end end
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/blockchain/test_tezos.rb
Ruby
mit
11,598
main
1,119
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerTezos < Test::Unit::TestCase def test_contract assert_match(/^KT1[1-9A-Za-z][^OIl]{20,40}/, Faker::Blockchain::Tezos.contract) end def test_account assert_match(/^tz1[1-9A-Za-z][^OIl]{20,40}/, Faker::Blockchain::Tezos.acc...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_dragon_ball.rb
Ruby
mit
11,598
main
397
# 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...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_studio_ghibli.rb
Ruby
mit
11,598
main
401
# 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...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_cowboy_bebop.rb
Ruby
mit
11,598
main
451
# 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) e...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_sword_art_online.rb
Ruby
mit
11,598
main
487
# 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+\.?/...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_fullmetal_alchemist_brotherhood.rb
Ruby
mit
11,598
main
424
# 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_...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_conan.rb
Ruby
mit
11,598
main
388
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_one_piece.rb
Ruby
mit
11,598
main
593
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_doraemon.rb
Ruby
mit
11,598
main
401
# 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...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/text_faker_naruto.rb
Ruby
mit
11,598
main
447
# 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...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/japanese_media/test_faker_kamen_rider.rb
Ruby
mit
11,598
main
2,701
# 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+...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/fantasy/test_faker_fantasy_tolkien.rb
Ruby
mit
11,598
main
444
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/religion/test_bible.rb
Ruby
mit
11,598
main
380
# 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...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_hackers.rb
Ruby
mit
11,598
main
373
# 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_qu...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_back_to_the_future.rb
Ruby
mit
11,598
main
385
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_how_to_train_your_dragon.rb
Ruby
mit
11,598
main
405
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerHowToTrainYourDragon < Test::Unit::TestCase def setup @tester = Faker::Movies::HowToTrainYourDragon end def test_character assert_match(/\w+/, @tester.character) end def test_location assert_match(/\w+/, @tester....
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_hitchhikers_guide_to_the_galaxy.rb
Ruby
mit
11,598
main
693
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerHitchhikersGuideToTheGalaxy < Test::Unit::TestCase def setup @tester = Faker::Movies::HitchhikersGuideToTheGalaxy end def test_character assert_match(/\w+/, @tester.character) end def test_location assert_match(/...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_hobbit.rb
Ruby
mit
11,598
main
464
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerMoviesHobbit < Test::Unit::TestCase def setup @tester = Faker::Movies::Hobbit 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/movies/test_faker_movies_ghostbusters.rb
Ruby
mit
11,598
main
387
# 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 ...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_tron.rb
Ruby
mit
11,598
main
2,255
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerTron < Test::Unit::TestCase CHARACTER_COUNT = 16 GAME_COUNT = 14 LOCATION_COUNT = 12 PROGRAM_COUNT = 9 TAGLINE_COUNT = 5 USER_COUNT = 6 VEHICLE_COUNT = 5 def setup @tester = Faker::Movies::Tron end def test_cha...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_lord_of_the_rings.rb
Ruby
mit
11,598
main
391
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerLordOfTheRings < Test::Unit::TestCase def setup @tester = Faker::Movies::LordOfTheRings 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/movies/test_faker_princess_bride.rb
Ruby
mit
11,598
main
320
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerPrincessBride < Test::Unit::TestCase def setup @tester = Faker::Movies::PrincessBride 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/movies/test_faker_avatar.rb
Ruby
mit
11,598
main
372
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerMovieAvatar < Test::Unit::TestCase def setup @tester = Faker::Movies::Avatar end def test_character assert_match(/\w+/, @tester.character) end def test_date assert_match(/\w+/, @tester.date) end def test_quo...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_the_room.rb
Ruby
mit
11,598
main
437
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerRoom < Test::Unit::TestCase def setup @tester = Faker::Movies::TheRoom end def test_actor assert_match(/\w+/, @tester.actor) end def test_character assert_match(/\w+/, @tester.character) end def test_locatio...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_departed.rb
Ruby
mit
11,598
main
373
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerDeparted < Test::Unit::TestCase def setup @tester = Faker::Movies::Departed end def test_actor assert_match(/\w+/, @tester.actor) end def test_character assert_match(/\w+/, @tester.character) end def test_qu...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_lebowski.rb
Ruby
mit
11,598
main
373
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerLebowski < Test::Unit::TestCase def setup @tester = Faker::Movies::Lebowski end def test_actor assert_match(/\w+/, @tester.actor) end def test_character assert_match(/\w+/, @tester.character) end def test_qu...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_star_wars.rb
Ruby
mit
11,598
main
1,743
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerStarWars < Test::Unit::TestCase def setup @tester = Faker::Movies::StarWars end def test_call_sign assert_match(/\w+/, @tester.call_sign) end def test_character assert_match(/\w+/, @tester.character) end def...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_v_for_vendetta.rb
Ruby
mit
11,598
main
383
# 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 d...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/movies/test_faker_harry_potter.rb
Ruby
mit
11,598
main
572
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerHarryPotter < Test::Unit::TestCase def setup @tester = Faker::Movies::HarryPotter 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/creature/test_faker_horse.rb
Ruby
mit
11,598
main
302
# 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
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/creature/test_faker_dog.rb
Ruby
mit
11,598
main
714
# 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 asse...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/creature/test_faker_cat.rb
Ruby
mit
11,598
main
370
# 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 a...
github
faker-ruby/faker
https://github.com/faker-ruby/faker
test/faker/creature/test_faker_animal.rb
Ruby
mit
11,598
main
243
# 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