Exception: ChefSpec::Error::NoConversionError

Inherits:
ChefSpecError
  • Object
show all
Defined in:
lib/chefspec/deprecations.rb

Instance Method Summary collapse

Constructor Details

#initialize(matcher) ⇒ NoConversionError

Returns a new instance of NoConversionError.



146
147
148
149
150
151
152
# File 'lib/chefspec/deprecations.rb', line 146

def initialize(matcher)
  message = "I cannot convert `#{matcher}` to use a new matcher format!" \
    " Please see the ChefSpec documentation and CHANGELOG for details" \
    " on converting this matcher. Sorry :("

  super(message)
end