Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



While I'm not currently using rspec, rswag/rswag is library for rspec I envy:

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


My 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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: