News for hackers. Stuff that matters.
Re:What if writing tests was a joyful experience? by thiago_fm on Thursday January 12, 2023 @06:28AM (#34352023)
The ruby example is wrong in so many levels.

You'd write a test like that in RSpec if you want to reuse it for other examples. The other example they present in Ruby, is what you would write if you were using Ruby std lib testing library.

It doesn't make the test any better or more "joyful".

Also the REPL-like experience their library has actually sucks.

I don't see any value, and if you don't find writing tests to be a joyful experience before that library was created, I don't see how you will see once you have that library.

Re:What if writing tests was a joyful experience? by cloakedcode on Thursday January 12, 2023 @09:53AM (#34354301)
Can you explain what you’d do differently?