Class: FactoryGirl::Linter::FactoryTraitError

Inherits:
FactoryError
  • Object
show all
Defined in:
lib/factory_girl/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_girl/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_girl/linter.rb', line 51

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