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



19
20
21
# File 'lib/rspec-puppet/matchers/raise_error.rb', line 19

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