Sha256: fba96670613e8328a9d4e7aaf2fc548aa554a5330e48d30389d6c3ce9f788b0a
Contents?: true
Size: 841 Bytes
Versions: 2
Compression:
Stored size: 841 Bytes
Contents
# encoding: utf-8 require 'helper' class TestVehicle < Test::Unit::TestCase def test_base_color assert_match /\A[a-z]+\z/, Faker::Vehicle.base_color end def test_year assert_match /\A\d{4}\z/, Faker::Vehicle.year end def test_manufacturer_color assert_match /\A[ a-z]+\z/, Faker::Vehicle.manufacturer_color end def test_mfg_color assert_match /\A[ a-z]+\z/, Faker::Vehicle.mfg_color end def test_make assert_match /\A[A-Z][- A-Za-z]+\z/, Faker::Vehicle.make end def test_model assert_match /\A[-\. a-z0-9]+\z/i, Faker::Vehicle.model end def test_trim assert_match /\A[- a-z]+\z/i, Faker::Vehicle.trim end def test_vin assert_match /\A[A-Z0-9]{17}\z/, Faker::Vehicle.vin end def test_drivetrain assert_match /\A[a-z0-9]+\z/i, Faker::Vehicle.drivetrain end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffaker-1.30.0 | test/test_vehicle.rb |
ffaker-1.25.0 | test/test_vehicle.rb |