Exception: Rails::TestUnit::InvalidTestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rails/test_unit/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, suggestion) ⇒ InvalidTestError

Returns a new instance of InvalidTestError.



13
14
15
16
17
18
# File 'lib/rails/test_unit/runner.rb', line 13

def initialize(path, suggestion)
  super(<<~MESSAGE.squish)
    Could not load test file: #{path}.
    #{suggestion}
  MESSAGE
end