Sha256: 944a14c6484957c59f479391f9bd084c1fd7bd6fcac733b860d6e1b680dae95b

Contents?: true

Size: 621 Bytes

Versions: 14

Compression:

Stored size: 621 Bytes

Contents

# encoding: utf-8

require 'helper'

class TestFaker < Test::Unit::TestCase
  def test_numerify
    assert Faker.numerify('###').match(/\d{3}/)
  end

  def test_numerify_with_array
    assert Faker.numerify(['###', '###']).match(/\d{3}/)
  end

  def test_letterify
    assert Faker.letterify('???').match(/[a-z]{3}/)
  end

  def test_letterify_with_array
    assert Faker.letterify(['???', '???']).match(/[a-z]{3}/)
  end

  def test_bothify
    assert Faker.bothify('???###').match(/[a-z]{3}\d{3}/)
  end

  def test_bothify_with_array
    assert Faker.bothify(['???###', '???###']).match(/[a-z]{3}\d{3}/)
  end

end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/test/test_faker.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/test/test_faker.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/test/test_faker.rb
ffaker-1.32.1 test/test_faker.rb
ffaker-1.32.0 test/test_faker.rb
ffaker-1.31.0 test/test_faker.rb
ffaker-1.30.0 test/test_faker.rb
ffaker-1.25.0 test/test_faker.rb
ffaker-1.24.0 test/test_faker.rb
ffakerer-1.0.2 test/test_faker.rb
ffaker-1.23.0 test/test_faker.rb
ffakerer-1.0.1 test/test_faker.rb
ffaker-1.22.1 test/test_faker.rb
ffaker-1.22.0 test/test_faker.rb