Sha256: 1d6af22a4bb4aa2f60259503848fc09882cb4c8f9c6683ed050b88195f69387e

Contents?: true

Size: 808 Bytes

Versions: 10

Compression:

Stored size: 808 Bytes

Contents

# encoding: utf-8

require 'helper'

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

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

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

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

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

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

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

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

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_address_da.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_address_da.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_address_da.rb
ffaker-1.32.1 test/test_address_da.rb
ffaker-1.32.0 test/test_address_da.rb
ffaker-1.31.0 test/test_address_da.rb
ffaker-1.30.0 test/test_address_da.rb
ffaker-1.25.0 test/test_address_da.rb
ffaker-1.24.0 test/test_address_da.rb
ffaker-1.23.0 test/test_address_da.rb