Skip to content

Commit

Permalink
Add test for postcode alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrussell committed Jan 8, 2012
1 parent a2cd257 commit f7a2403
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_address_au.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def test_zip_code
assert_match /\d{4}/, Faker::AddressAU.zip_code
end

def test_postcode
assert_match /\d{4}/, Faker::AddressAU.postcode
end

def test_full_address
assert_match /[\, a-z]/, Faker::AddressAU.full_address
end
Expand Down

0 comments on commit f7a2403

Please sign in to comment.