Exception: RSpec::Puppet::Errors::RegexpMatchError

Inherits:
MatchError
  • Object
show all
Defined in:
lib/rspec-puppet/errors.rb

Instance Attribute Summary

Attributes inherited from MatchError

#actual, #expected, #negative, #param

Instance Method Summary collapse

Methods inherited from MatchError

#initialize, #to_s

Constructor Details

This class inherits a constructor from RSpec::Puppet::Errors::MatchError

Instance Method Details

#messageObject



35
36
37
38
39
40
41
# File 'lib/rspec-puppet/errors.rb', line 35

def message
  if negative == true
    "#{param} not matching #{expected.inspect} but its value of #{actual.inspect} does"
  else
    "#{param} matching #{expected.inspect} but its value of #{actual.inspect} does not"
  end
end