Exception: RSpec::Puppet::Errors::RegexpMatchError
- Inherits:
-
MatchError
- Object
- StandardError
- MatchError
- RSpec::Puppet::Errors::RegexpMatchError
- 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
Constructor Details
This class inherits a constructor from RSpec::Puppet::Errors::MatchError
Instance Method Details
#message ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/rspec-puppet/errors.rb', line 35 def 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 |