Skip to content

Instantly share code, notes, and snippets.

@paulelliott
Created February 18, 2011 14:25
Show Gist options
  • Save paulelliott/833708 to your computer and use it in GitHub Desktop.
Save paulelliott/833708 to your computer and use it in GitHub Desktop.
Proper Use of Fabricators - Model Fabricator
Fabricator(:model) do
manufacturer!
name { Fabricate.sequence(:model_name) { |i| "Model #{i}" } }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment