Skip to content

Update name pattern for test files

Compare
Choose a tag to compare
@AlexB52 AlexB52 released this 01 Oct 07:19
· 80 commits to main since this release

Since December 2021, Bundler gem now defaults to test_filename.rb instead of filename_test.rb in release 2.3.0

bundle gem generated MiniTest file and class now start with 'test' rubygems/rubygems#3893

This release addresses this change by updating what's considered a test file when matching specs.

A change in filename.rb will now consider these files as possible matches:

  • filename_test.rb
  • filename_spec.rb
  • test_filename.rb
  • spec_filename.rb (because why not)