Sha256: 4599b28f0219a8941b59169ae57df15096194fd2767410581ee5e7bdf9980639

Contents?: true

Size: 817 Bytes

Versions: 2

Compression:

Stored size: 817 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestAddressDA < Test::Unit::TestCase
  def test_zip_code
    assert_match /^\d{4}$/, FFaker::AddressDA.zip_code
  end

  def test_post_nr
    assert_match /^\d{4}$/, FFaker::AddressDA.post_nr
  end

  def test_state
    assert_match /[ a-z]/, FFaker::AddressDA.state
  end

  def test_kommune
    assert_match /[ a-z]/, FFaker::AddressDA.kommune
  end

  def region
    assert_match /[ a-z]/, FFaker::AddressDA.region
  end

  def test_city
    assert_match /[ a-z]+/, FFaker::AddressDA.city
  end

  def test_street_name
    assert_match /[ a-z]+/, FFaker::AddressDA.street_name
  end

  def test_street_address
    assert_match /[ a-z]+/, FFaker::AddressDA.street_address
  end

  def test_full_address
    assert_match /[ a-z]+/, FFaker::AddressDA.full_address
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffaker-2.1.0 test/test_address_da.rb
ffaker-2.0.0 test/test_address_da.rb