Sha256: e13f11f22a3f88d387879f7dcdd88553bab7c23a46ca932f1cf06c3067b3bfcf

Contents?: true

Size: 817 Bytes

Versions: 206

Compression:

Stored size: 817 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 attempting to register a 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

206 entries across 97 versions & 7 rubygems

Version Path
classicCMS-0.2.1 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/errors.rb
classicCMS-0.2.0 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/errors.rb
classicCMS-0.1.2 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/errors.rb
challah-0.5.3 vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/errors.rb
factory_girl-3.0.0 lib/factory_girl/errors.rb
factory_girl-3.0.0.rc1 lib/factory_girl/errors.rb