We don't have specs that accept ratios and not integers, rather we have specs that accept most if not all number types and need to be able to generate all those different types (including ratios) to properly test them.
Unfortunately the built in generator `(s/gen number?)` only generates longs and doubles (that's a whole separate topic), so we intentionally generate bigints, bigdecs, ratios, etc. in our tests. The way I was generating ratios was with `(s/gen ratio?)`, which caused test flakes due to the such-that exception (which if you've ever experienced such flakes, you'll know they're the hardest ones to debug! But that's also a separate topic).
Switching to `(gen/ratio)` solves that and works for my use case because our specs also happen to accept integers, but I lost quite a lot of time getting to that point.