Sha256: be22460c6371f6b4b0233ba69d0ecca3fb630841a2f0e5a797a3234195a64195

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

# encoding: utf-8

require 'helper'

# Author: guapolo github.com/guapolo
class TestAddressMX < Test::Unit::TestCase
  def setup
    @tester = Faker::AddressMX
  end

  def test_mx_state
    assert_match /[ A-Za-z]/, @tester.state
  end

  def test_mx_state_abbr
    assert_match /[A-Z]/, @tester.state_abbr
  end

  def test_postcode
    assert_match /[0-9]/, @tester.zip_code
  end

  def test_mx_municipality
    assert_match /[ a-z]/, @tester.municipality
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ffaker-1.24.0 test/test_address_mx.rb
ffakerer-1.0.2 test/test_address_mx.rb
ffaker-1.23.0 test/test_address_mx.rb
ffakerer-1.0.1 test/test_address_mx.rb
ffaker-1.22.1 test/test_address_mx.rb
ffaker-1.22.0 test/test_address_mx.rb