Sha256: a4b5e8641874f8b794668493a22707f2f5934f0bcaa42b8f205a9d2d30a39d4b

Contents?: true

Size: 299 Bytes

Versions: 19

Compression:

Stored size: 299 Bytes

Contents

require 'helper'

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

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

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ffaker-1.10.1 test/test_faker.rb
ffaker-1.9.1 test/test_faker.rb
ffaker-1.8.1 test/test_faker.rb
ffaker-1.8.0 test/test_faker.rb
ffaker-1.7.0 test/test_faker.rb
ffaker-1.6.0 test/test_faker.rb
ffaker-1.5.0 test/test_faker.rb
ffaker-1.4.0 test/test_faker.rb
ffaker-1.3.0 test/test_faker.rb
ffaker-1.2.0 test/test_faker.rb
ffaker-1.1.0 test/test_faker.rb
ffaker-1.0.0 test/test_faker.rb
ffaker-0.4.0 test/test_faker.rb
ffaker-0.3.7 test/test_faker.rb
ffaker-0.3.6 test/test_faker.rb
ffaker-0.3.5 test/test_faker.rb
ffaker-0.3.4 test/test_faker.rb
ffaker-0.3.3 test/test_faker.rb
ffaker-0.3.2 test/test_faker.rb