diff --git a/lib/rspec-puppet/matchers/dynamic_matchers.rb b/lib/rspec-puppet/matchers/dynamic_matchers.rb index 200d99be6..7833042d5 100644 --- a/lib/rspec-puppet/matchers/dynamic_matchers.rb +++ b/lib/rspec-puppet/matchers/dynamic_matchers.rb @@ -26,8 +26,8 @@ def method_missing(method, *args, &block) end module TypeMatchers - def method_missing(method, *args, &block) - return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method, *args, &block) if method == :be_valid_type + def method_missing(method, ...) + return RSpec::Puppet::TypeMatchers::CreateGeneric.new(method, ...) if method == :be_valid_type super end