Sha256: 9e55860f0d1d052924f1d9c2f786bb6ccf41bdb4e1928afa0fb2c5aefd125272

Contents?: true

Size: 543 Bytes

Versions: 10

Compression:

Stored size: 543 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestProducts < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(
    FFaker::Product,
    :brand, :product_name, :product, :model
  )

  def test_letters_max_as_int
    assert_match(/\A[A-Z]{10}\z/, FFaker::Product.letters(10))
    assert_deterministic { FFaker::Product.letters(10) }
  end

  def test_letters_max_as_range
    assert_match(/\A[A-Z]{5,10}\z/, FFaker::Product.letters(5..10))
    assert_deterministic { FFaker::Product.letters(5..10) }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 test/test_products.rb
ffaker-2.10.0 test/test_products.rb
ffaker-2.9.0 test/test_products.rb
ffaker-2.8.1 test/test_products.rb
ffaker-2.8.0 test/test_products.rb
ffaker-2.7.0 test/test_products.rb
ffaker-2.6.0 test/test_products.rb
ffaker-2.5.0 test/test_products.rb
ffaker-2.4.0 test/test_products.rb
ffaker-2.3.0 test/test_products.rb