lib/factory_boy.rb
# name can be :user or User, there could also be passed
# class option
name can be :user or User, there could also be passed
class option
name can be : user or User there could also be passed class option
def register_factory(name, instance, klass)
      factories[normalize_name(name)] = {
        class: klass,
        instance: instance
      }
    end
def register_factory ( name , instance , klass ) factories [ normalize_name ( name ) ] = { class : klass , instance : instance } end
name can be :user or User, there could also be passed
class option
name can be : user or User there could also be passed class option
name
<not_specific>
instance
<not_specific>
klass
<not_specific>