This is my second real world BDD example that we’ve written in the past here at Clearly Agile. I’ve been given permission to share this piece of code from the client.
My previous example you can view here, which is around languages.
In this example, we have a scenario where a user can create something called a “Project” and it has to have a correct “Open Date”. Open Date is when the Project is complete and it’s calculated off a collection of Tasks.