Exception: FixtureFactory::NotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/fixture_factory/errors.rb

Overview

Raised when a factory is referenced, but not defined.

Instance Method Summary collapse

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