theangrydev / fluent-bdd

A BDD framework to help write tests in a fluent way, reusing givens, whens and thens.
Apache License 2.0
6 stars 1 forks source link

Make the test output language validation less strict. #1

Closed tjheslin1 closed 8 years ago

tjheslin1 commented 8 years ago

Example:

given(theInventory.willReturn().aDirectoryNumber(DIR_NUM));
when(theClientRequestsADirectoryNumbersDetails());
then(theResponse).hasCode(200);
and(theResponse).containsDetails(DIR_DETAILS);

In the event that my then's have to be in a specific order and my first assertion doesn't use the then() framework (e.g a wiremock verify), the framework then complains that I have not provided a then() before my and()'s.

theangrydev commented 8 years ago

Done! I removed that validation in version 1.6.0