Sha256: c8ff35207e3af87374ef89ccd538da82ed3fbd37b267ef95e77cf9a33e11dd70

Contents?: true

Size: 808 Bytes

Versions: 14

Compression:

Stored size: 808 Bytes

Contents

module FactoryGirl
  # Raised when a factory is defined that attempts to instantiate itself.
  class AssociationDefinitionError < RuntimeError; end

  # Raised when a callback is defined that has an invalid name
  class InvalidCallbackNameError < RuntimeError; end

  # Raised when a factory is defined with the same name as a previously-defined factory.
  class DuplicateDefinitionError < RuntimeError; end

  # Raised when calling Factory.sequence from a dynamic attribute block
  class SequenceAbuseError < RuntimeError; end

  # Raised when defining an invalid attribute:
  # * Defining an attribute which has a name ending in "="
  # * Defining an attribute with both a static and lazy value
  # * Defining an attribute twice in the same factory
  class AttributeDefinitionError < RuntimeError; end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/factory_girl-2.6.4/lib/factory_girl/errors.rb
challah-0.6.2 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
challah-0.6.1 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
challah-0.6.0 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
challah-0.5.4 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
challah-0.5.3 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
challah-0.5.2 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
factory_girl-2.6.4 lib/factory_girl/errors.rb
factory_girl-2.6.3 lib/factory_girl/errors.rb
factory_girl-2.6.2 lib/factory_girl/errors.rb
challah-0.5.1 vendor/bundle/gems/factory_girl-2.6.1/lib/factory_girl/errors.rb
factory_girl-2.6.1 lib/factory_girl/errors.rb
factory_girl-2.6.0 lib/factory_girl/errors.rb
factory_girl-2.5.2 lib/factory_girl/errors.rb