mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
10 lines
200 B
Ruby
10 lines
200 B
Ruby
require 'activesupport'
|
|
require 'factory_girl/factory'
|
|
|
|
# Shortcut for Factory.create.
|
|
#
|
|
# Example:
|
|
# Factory(:user, :name => 'Joe')
|
|
def Factory (name, attrs = {})
|
|
Factory.create(name, attrs)
|
|
end
|