Sha256: e4434466bc0e0a1774d845a9546aad37abcb15721ed68c07c57f08d1b4d17b9e
Contents?: true
Size: 574 Bytes
Versions: 9
Compression:
Stored size: 574 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestProducts < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::Product, :brand, :product_name, :product, :model ) def test_letters_max_as_int assert_match(/\A[A-Z]{10}\z/, FFakerTW::Product.letters(10)) assert_deterministic { FFakerTW::Product.letters(10) } end def test_letters_max_as_range assert_match(/\A[A-Z]{5,10}\z/, FFakerTW::Product.letters(5..10)) assert_deterministic { FFakerTW::Product.letters(5..10) } end end
Version data entries
9 entries across 9 versions & 1 rubygems