-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
After a long night of thought and experimentation, I'd like to propose replacing the templating syntax:
<%= does("ASSERTION_SUBJECT") %>.be.at.least(1);
With:
<%= expect() %>ASSERTION_SUBJECT<%= to() %>.be.at.least(1);
Pros:
- Fixes problems with escaping templates and line breaks
- Will be simpler to implement and maintain
- Templates read better than broken english
does
- No need to quote the assertion subject
Cons:
- Adds slightly more syntax to the templates than
does