Skip to content

Commit

Permalink
Use splat args for raise_error matcher wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Oct 6, 2019
1 parent ebe91c0 commit 797825b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rspec-puppet/matchers/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def supports_value_expectations?
end
end

def raise_error(error=nil, message=nil, &block)
RaiseError.new(error, message, &block)
def raise_error(*args, &block)
RaiseError.new(*args, &block)
end
end
end

0 comments on commit 797825b

Please sign in to comment.