Sha256: f765ddcb2d0ea235a213c925a66c38ff0ba89347f8a066954018b69d8027fe90

Contents?: true

Size: 703 Bytes

Versions: 4

Compression:

Stored size: 703 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestEnAuOckerLocale < Test::Unit::TestCase
  def setup
    Faker::Config.locale = 'en-au-ocker'
  end

  def teardown
    Faker::Config.locale = nil
  end

  def test_au_ocker_methods_with_en_au_ocker_locale
    assert Faker::Name.first_name.is_a? String
    assert Faker::Name.last_name.is_a? String
    assert Faker::Name.ocker_first_name.is_a? String
    assert Faker::Address.street_name.is_a? String
    assert Faker::Address.city.is_a? String
  end

  def test_aussie_mobiles_start_with_04
    mobile = Faker::PhoneNumber.cell_phone.gsub(/\D/,'')
    assert_equal '0', mobile[0]
    assert_equal '4', mobile[1]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
faker-1.6.3 test/test_en_au_ocker_locale.rb
faker-1.6.2 test/test_en_au_ocker_locale.rb
faker-1.6.1 test/test_en_au_ocker_locale.rb
faker-1.6.0 test/test_en_au_ocker_locale.rb