$ ruby -v
ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-darwin19]
$ ruby -c spec/models/git_repository_spec.rb
Syntax OK
$ ruby -v
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-darwin20]
$ ruby -c spec/models/git_repository_spec.rb
Syntax OK
Here is an example failure and here is the code that is failing