Module: RSpec::Puppet::GenericMatchers

Included in:
Support
Defined in:
lib/rspec-puppet/matchers/raise_error.rb

Defined Under Namespace

Classes: RaiseError

Instance Method Summary collapse

Instance Method Details

#raise_error(error = defined?(RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue) ? RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue : nil, message = nil, &block) ⇒ Object



21
22
23
24
25
# File 'lib/rspec-puppet/matchers/raise_error.rb', line 21

def raise_error(
  error = defined?(RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue) ? RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue : nil, message = nil, &block
)
  RaiseError.new(error, message, &block)
end