There are two main testing frameworks for Ruby code: RSpec and Minitest. I learnt testing coming to Ruby using RSpec as many of our companies Rails app used it.
As I gained more experience, I begun to wonder why. I started to feel subtle pains of maintaining a large RSpec codebase. On my latest project I gave minitest a go, and this is what I learnt:
There's no true winner. I prefer the simplicity of Minitest, but because RSpec is so popular, you need to know both frameworks as a professional Rubyist.