3 ms·
It's a mystery to me why such a large number of ruby programmers seem to prefer rspec to mintiest. If you do, why? How is it better in your view?
by e12e 3y ago
It's a mystery to me why such a large number of ruby programmers seem to prefer rspec to mintiest.
If you do, why? How is it better in your view?
- jmg_ 3y agoWhile I'm not currently using rspec, rswag/rswag is library for rspec I envy: https://github.com/rswag/rswag https://github.com/rswag/rswag I'm currently using thoughtbot/json_matchers w/ partials of my OpenAPI spec, but its not nearly as user friendly: https://github.com/thoughtbot/json_matchers https://github.com/thoughtbot/json_matchers
- e12e 3y agoMy only moments of joy derived from rspec is through rswag. But it pretty much (ab)uses rspec to give you design-by-contract for JSON api. I would've enjoyed it more if it didn't try so hard to mimic a JSON schema language as an embedded DSL in ruby. It's verbose and error prone, with the dubious benefit of looking familiar.