Sha256: 92bbacd1b2d6fe3fe564e979fc6740323adbaf0c889931f86f42fa8cd43fe06e

Contents?: true

Size: 573 Bytes

Versions: 1

Compression:

Stored size: 573 Bytes

Contents

# frozen_string_literal: true

require_relative '../../test_helper'

class TestFakerNation < Test::Unit::TestCase
  def setup
    @tester = Faker::Nation
  end

  def test_flag
    assert @tester.flag.match(/\p{M}*+/)
  end

  def test_nationality
    assert @tester.nationality.match(/(\w+\.? ?){2,3}/)
  end

  def test_language
    assert @tester.language.match(/[A-Z][a-z]+\.?/)
  end

  def test_capital_city
    assert @tester.capital_city.match(/(\w+\.? ?){2,3}/)
  end

  def test_national_sport
    assert @tester.national_sport.match(/(\w+\.? ?){2,3}/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/test/faker/default/test_faker_nation.rb