0.01
No release in over 3 years
Low commit activity in last 3 years
Generates random data for your tests. Ruby port for https://github.com/omaciel/fauxfactory.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 5.0
>= 0
 Project Readme

RFauxFactory

image

image

Generates random data for your tests. Ruby port for https://github.com/omaciel/fauxfactory.

Install RFauxFactory

Generate Strings with default length=10

Generate Strings with custom length

Generate Strings with the general gen_string function

allowed string types are:

  • alpha
  • alphanumeric
  • cjk
  • html
  • latin1
  • numeric
  • utf8
  • punctuation

Generate Strings of all the supported types

  • With default fixed length 10:
  • With custom fixed length:
  • With custom range length:
  • With excluding some string types:
  • We can also combine length and exclude options:

Generate bool values: