Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travisdouce/adds create list #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tdouce
Copy link
Owner

@tdouce tdouce commented Nov 18, 2014

Adds RemoteFactoryGirl.create_list to create multiple resources

Allows creating multiple resources with one method call.

Instead of doing:

```ruby
users = 1.upto(3).map |user|
  RemoteFactoryGirl.create(:user)
end
```

You can instead create 3 users like:

```ruby
users = RemoteFactoryGirl.create_list(:user, 3)
```
@tdouce tdouce force-pushed the travisdouce/adds_create_list branch from e23447a to a7bd3d1 Compare November 18, 2014 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants