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