2 ms·
Please, please don’t. The rspec syntax has been cargo culted along for far too long, and it provides nothing except cutesy, confusing syntax. I say this as som
by stouset 3y ago
Please, please don’t. The rspec syntax has been cargo culted along for far too long, and it provides nothing except cutesy, confusing syntax.
I say this as someone who has been writing Ruby professionally for something like fifteen years. I used rspec for maybe eight of them. I understand the rspec DSL syntax fully and have no problem writing tests in it. But it should not exist.
The only real, valuable thing it brought to the ecosystem was scopes/contexts. Other testing frameworks have that, and there is nothing left but an insane amount of inertia that keeps it going.