Skip to content

Commit

Permalink
kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek committed Oct 1, 2019
1 parent d9e7037 commit 6e6d6a7
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 6e6d6a7

Please sign in to comment.