Sha256: c5a0792799d1e51874d44dede6f365b1048d10ce89f55610c4b8ec2d51fe490c

Contents?: true

Size: 633 Bytes

Versions: 7

Compression:

Stored size: 633 Bytes

Contents

# frozen_string_literal: true

require 'helper'

class TestLocale < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFaker::Locale, :code, :language)

  def test_code
    assert_match(/./, FFaker::Locale.code)
  end

  def test_language
    assert_match(/./, FFaker::Locale.language)
  end

  def test_language_with_args
    assert_match('French', FFaker::Locale.language('FR'))
    assert_deterministic { FFaker::Locale.language('FR') }
  end

  def test_code_with_args
    assert_match('FR', FFaker::Locale.code('French'))
    assert_deterministic { FFaker::Locale.code('French') }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_locale.rb
ffaker-2.17.0 test/test_locale.rb
ffaker-2.16.0 test/test_locale.rb
ffaker-2.15.0 test/test_locale.rb
ffaker-2.14.0 test/test_locale.rb
ffaker-2.13.0 test/test_locale.rb
ffaker-2.12.0 test/test_locale.rb