We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c000b9e commit edf9faeCopy full SHA for edf9fae
2 files changed
lib/factory_bot/strategy/build.rb
@@ -7,6 +7,7 @@ def association(runner)
7
8
def result(evaluation)
9
evaluation.object.tap do |instance|
10
+ evaluation.notify(:before_build, instance)
11
evaluation.notify(:after_build, instance)
12
end
13
lib/factory_bot/strategy/create.rb
evaluation.notify(:before_create, instance)
evaluation.create(instance)
0 commit comments