rails
rails copied to clipboard
Rails test command suggests similar test files when the given file is not found
For example, if you run rails test test/models/usr_tsst.rb and the file does not exist, Rails will suggest test/models/users_test.rb as a possible file.
Could not load test file: test/models/usr_tsst.rb. Did you mean? test/models/user_test.rb
After investigating #50978, I was inspired to add this feature to Rails.
Credit to @tenderlove for the minitest implementation.