3 ms·
> “as a user, when I…” That's not RSpec. That's the evil cuke-y form of BDD.
by drewcoo 5y ago
> “as a user, when I…”
That's not RSpec. That's the evil cuke-y form of BDD.
- tibbon 5y agoI recall this being all the rage for a few years.
- jspash 5y agoI remember struggling with this also. But if anything good came out of that era, it was Given.. When.. Then.. which is the template I still use to this day. It works for developers writing the specs, new devs reading them and surprisingly it also works for non-techie types who request features. If a request comes in that doesn't state those three things, I'll walk the person through it. And occasionally they will have an epiphany of sorts. An enlightening moment where they finally "get it". They get where communication has suffered in the past. I really love that part of my job. It's like being a translator between humans and aliens where previously they both just wanted to eat each other. But due to G/W/T they now want to build interstellar highways together and have hybrid babies.