Exception: Spec::Example::NoDescriptionError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/spec/example/errors.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kind, location) ⇒ NoDescriptionError

Returns a new instance of NoDescriptionError.


20
21
22
# File 'lib/spec/example/errors.rb', line 20

def initialize(kind, location)
  super(self.class.message(kind, location))
end

Class Method Details

.message(kind, location) ⇒ Object


16
17
18
# File 'lib/spec/example/errors.rb', line 16

def message(kind, location)
  "No description supplied for #{kind} declared on #{location}"
end