Sha256: 124e1a1a35fb015d641e16536482731b984d46f9f05786fe85ad067fee95a679
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestAddressRU < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::AddressRU, :city, :province, :street_address, :street_name, :zip_code ) def setup @tester = FFakerTW::AddressRU end def test_city assert_match(/\A[a-zа-яё\-\s]+\z/i, @tester.city) end def test_province assert_match(/\A[a-zа-яё\-\s]+\z/i, @tester.province) end def test_zip_code assert_match(/\A\d{6}\z/, @tester.zip_code) end def test_street_name assert_match(/\A[a-zа-яё.\-\s]+\z/i, @tester.street_name) end def test_street_address assert_match(/\A[a-zа-яё.,\-\s\d]+\z/i, @tester.street_address) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_address_ru.rb |