Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6cddb37
commit 98626c9
Showing
2 changed files
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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 |