Skip to content

Commit

Permalink
Prefer Dir.glob with block
Browse files Browse the repository at this point in the history
Dir#[] uses rb_push_glob in its implementation.
  • Loading branch information
olleolleolle committed Jun 26, 2023
1 parent b667b83 commit d4efc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/all.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Dir['spec/**/*_spec.rb'].each{|f| require_relative f.sub('spec/', '')}
Dir.glob('spec/**/*_spec.rb') {|f| require_relative f.sub('spec/', '')}

0 comments on commit d4efc45

Please sign in to comment.