final class TheyWord extends AnyRef
Class that supports shorthand scope registration via the instance referenced from WordSpecLike
's they
field.
This class enables syntax such as the following test registration:
"Basketball players" when { ... }
they should { ... }
^
For more information and examples of the use of the they
field, see the main documentation
for WordSpec
.
- Attributes
- protected
- Source
- AsyncWordSpecLike.scala
- Alphabetic
- By Inheritance
- TheyWord
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TheyWord()
Value Members
-
def
can(right: ⇒ Unit)(implicit pos: Position): Unit
Supports the registration of scope with
can
in aWordSpecLike
.Supports the registration of scope with
can
in aWordSpecLike
.This method supports syntax such as the following:
"Basketball players" when { ... } they can { ... } ^
For examples of scope registration, see the main documentation for
WordSpec
. -
def
must(right: ⇒ Unit)(implicit pos: Position): Unit
Supports the registration of scope with
must
in aWordSpecLike
.Supports the registration of scope with
must
in aWordSpecLike
.This method supports syntax such as the following:
"Basketball players" when { ... } they must { ... } ^
For examples of scope registration, see the main documentation for
WordSpec
. -
def
should(right: ⇒ Unit)(implicit pos: Position): Unit
Supports the registration of scope with
should
in aWordSpecLike
.Supports the registration of scope with
should
in aWordSpecLike
.This method supports syntax such as the following:
"Basketball players" when { ... } they should { ... } ^
For examples of scope registration, see the main documentation for
WordSpec
. -
def
when(right: ⇒ Unit)(implicit pos: Position): Unit
Supports the registration of scope with
when
in aWordSpecLike
.Supports the registration of scope with
when
in aWordSpecLike
.This method supports syntax such as the following:
"Basketball players" should { ... } they when { ... } ^
For examples of scope registration, see the main documentation for
WordSpec
.