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

Rename CallbackRunner to CallbacksObserver since it's an observer

This commit is contained in:
Joshua Clayton 2012-04-20 16:41:27 -04:00
parent 939554c596
commit 4142b5eda3
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ require 'factory_girl/evaluator'
require 'factory_girl/evaluator_class_definer'
require 'factory_girl/attribute'
require 'factory_girl/callback'
require 'factory_girl/callback_runner'
require 'factory_girl/callbacks_observer'
require 'factory_girl/declaration_list'
require 'factory_girl/declaration'
require 'factory_girl/sequence'

View file

@ -1,5 +1,5 @@
module FactoryGirl
class CallbackRunner
class CallbacksObserver
def initialize(callbacks, evaluator)
@callbacks = callbacks
@evaluator = evaluator

View file

@ -36,7 +36,7 @@ module FactoryGirl
attribute_assigner = AttributeAssigner.new(evaluator, build_class, &instance_builder)
evaluation = Evaluation.new(attribute_assigner, to_create)
evaluation.add_observer(CallbackRunner.new(callbacks, evaluator))
evaluation.add_observer(CallbacksObserver.new(callbacks, evaluator))
strategy.result(evaluation).tap(&block)
end