factory_girl

https://github.com/thoughtbot/factory_girl

Ruby

A library for setting up Ruby objects as test data.

FactoryGirl::Syntax::Methods#generate_list

Generates and returns the list of values in a sequence.

Arguments:
  name: (Symbol)
    The name of the sequence that a value should be generated for.
  count: (Fixnum)
    Count of values

Returns:
  The next value in the sequence. (Object)

Source | Google | Stack overflow

Edit

git clone [email protected]:thoughtbot/factory_girl.git

cd factory_girl

open lib/factory_girl/syntax/methods.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-FactoryGirl--Syntax--Methods-generate_list-for-pr


# Commit to git

git add lib/factory_girl/syntax/methods.rbgit commit -m "better docs for FactoryGirl::Syntax::Methods#generate_list"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-FactoryGirl--Syntax--Methods-generate_list-for-pr

hub pull-request


# Celebrate!