Skip to content

Canary: replace <%= does() %> #1163

@kingcody

Description

@kingcody

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions