Exception: FixtureFactory::NotFoundError
- Defined in:
- lib/fixture_factory/errors.rb
Overview
Raised when a factory is referenced, but not defined.
Instance Method Summary collapse
-
#initialize(fixture_name) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(fixture_name) ⇒ NotFoundError
Returns a new instance of NotFoundError.
9 10 11 12 13 14 15 16 17 |
# File 'lib/fixture_factory/errors.rb', line 9 def initialize(fixture_name) super( <<~MSG.squish No factory named "#{fixture_name}". Did you forget to define it? https://github.com/Shopify/fixture_factory/blob/master/README.md#definition MSG ) end |