Can `bin/rails test` be setup with RSpec?

I’m using rspec and currently run using rspec binstub. I was wondering if it’s possible to change bin/rails test to trigger rspec instead. I tried googling “rails rspec test runner” and didn’t come across anything promising.

What’s wrong with rails spec?
Does it really need to be rails test?

Supposedly, you only have the spec task but not the test task currently.
You just have to create the test task and list the other one as a prerequisite, no?

Like this:

task test: %i[spec]