Sha256: 28378f30bec768d55df7321f0766f110b8fe5954d567c739ea3a69b27fe1c151
Contents?: true
Size: 333 Bytes
Versions: 58
Compression:
Stored size: 333 Bytes
Contents
module FactoryGirl class Decorator class DisallowsDuplicatesRegistry < Decorator def register(name, item) if registered?(name) raise DuplicateDefinitionError, "#{@component.name} already registered: #{name}" else @component.register(name, item) end end end end end
Version data entries
58 entries across 46 versions & 11 rubygems