Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a When() synonym for Context() #348

@decibel

Description

@decibel

I find myself writing a lot of Context()s with a description in the form "when ", ... It(). Enough so that I'm wondering if it'd be worth adding a When() to the DSL, something along the lines of:

    return Context("when " + description, ...)
}```

That way if you write:

```When("something happens", func() {
...
})```

you'd get a "when" in the text output as well.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions