module RSpec::Puppet::GenericMatchers
Public Instance Methods
raise_error(error=defined?(RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue) ? RSpec::Matchers::BuiltIn::RaiseError::UndefinedValue : nil, message=nil, &block)
click to toggle source
# 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