Skip to content

Commit

Permalink
Merge pull request #627 from ahorek/kwargs
Browse files Browse the repository at this point in the history
kwargs
  • Loading branch information
schneems authored Oct 1, 2019
2 parents d9e7037 + 6e6d6a7 commit 365036d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_performance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ def stat(filename)
$dir_entires_calls = nil
class << Dir
alias_method :original_entries, :entries
def entries(dirname, *args)
def entries(dirname, **args)
if $dir_entires_calls
$dir_entires_calls[dirname.to_s] ||= []
$dir_entires_calls[dirname.to_s] << caller
end
original_entries(dirname, *args)
original_entries(dirname, **args)
end
end

Expand Down

0 comments on commit 365036d

Please sign in to comment.