Sha256: e3216737fd35dbe22eb84f5291616302a4f576112441690a3b97ec7eedd53997

Contents?: true

Size: 673 Bytes

Versions: 10

Compression:

Stored size: 673 Bytes

Contents

# encoding: utf-8

require 'helper'

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

  assert_methods_are_deterministic(
    FFaker::AddressNL,
    :city, :province, :street_address, :street_name, :zip_code
  )

  def setup
    @tester = FFaker::AddressNL
  end

  def test_city
    assert_match(/[ a-z]+/, @tester.city)
  end

  def test_province
    assert_match(/[ a-z]/, @tester.province)
  end

  def test_zip_code
    assert_match(/^\d{4}\s\w{2}$/, @tester.zip_code)
  end

  def test_street_name
    assert_match(/[ a-z]+/, @tester.street_name)
  end

  def test_street_address
    assert_match(/[ a-z]+/, @tester.street_address)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_address_nl.rb
ffaker-2.10.0 test/test_address_nl.rb
ffaker-2.9.0 test/test_address_nl.rb
ffaker-2.8.1 test/test_address_nl.rb
ffaker-2.8.0 test/test_address_nl.rb
ffaker-2.7.0 test/test_address_nl.rb
ffaker-2.6.0 test/test_address_nl.rb
ffaker-2.5.0 test/test_address_nl.rb
ffaker-2.4.0 test/test_address_nl.rb
ffaker-2.3.0 test/test_address_nl.rb