Module: ActiveError::ExceptionMock
- Defined in:
- lib/active_error/exception_mock.rb,
lib/active_error/exception_mock/default.rb,
lib/active_error/exception_mock/template_error.rb
Defined Under Namespace
Classes: Default, Klass, TemplateError
Class Method Summary collapse
Class Method Details
.make(fault:) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/active_error/exception_mock.rb', line 5 def self.make(fault:) case fault&.klass when "ActionView::Template::Error" then TemplateError.new(fault:) when nil then nil else Default.new(fault:) end end |