Class: FactoryBot::Linter::FactoryTraitError

Inherits:
FactoryError show all
Defined in:
lib/factory_bot/linter.rb

Instance Method Summary collapse

Methods inherited from FactoryError

#message

Constructor Details

#initialize(wrapped_error, factory, trait_name) ⇒ FactoryTraitError

Returns a new instance of FactoryTraitError.


46
47
48
49
# File 'lib/factory_bot/linter.rb', line 46

def initialize(wrapped_error, factory, trait_name)
  super(wrapped_error, factory)
  @trait_name = trait_name
end

Instance Method Details

#locationObject


51
52
53
# File 'lib/factory_bot/linter.rb', line 51

def location
  "#{@factory.name}+#{@trait_name}"
end