1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/lib/factory_bot/strategy/build.rb

20 lines
320 B
Ruby
Raw Normal View History

module FactoryBot
module Strategy
class Build
def association(runner)
runner.run
end
def result(evaluation)
evaluation.object.tap do |instance|
evaluation.notify(:after_build, instance)
end
2008-12-23 14:03:29 -05:00
end
def to_sym
:build
end
2008-12-23 14:03:29 -05:00
end
end
end