TheyWord

final protected class TheyWord

Class that supports shorthand scope registration via the instance referenced from FixtureAnyWordSpecLike'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 AnyWordSpec.

class Object
trait Matchable
class Any

Value members

Concrete methods

infix inline def can(right: => Unit): Unit

Supports the registration of scope with can in a FixtureAnyWordSpecLike.

Supports the registration of scope with can in a FixtureAnyWordSpecLike.

This method supports syntax such as the following:

"Basketball players" when { ... }

they can { ... }
    ^

For examples of scope registration, see the main documentation for AnyWordSpec.

Value parameters:
right

the body function

infix inline def must(right: => Unit): Unit

Supports the registration of scope with must in a FixtureAnyWordSpecLike.

Supports the registration of scope with must in a FixtureAnyWordSpecLike.

This method supports syntax such as the following:

"Basketball players" when { ... }

they must { ... }
    ^

For examples of scope registration, see the main documentation for AnyWordSpec.

Value parameters:
right

the body function

infix inline def should(right: => Unit): Unit

Supports the registration of scope with should in a FixtureAnyWordSpecLike.

Supports the registration of scope with should in a FixtureAnyWordSpecLike.

This method supports syntax such as the following:

"Basketball players" when { ... }

they should { ... }
    ^

For examples of scope registration, see the main documentation for AnyWordSpec.

Value parameters:
right

the body function

infix inline def when(right: => Unit): Unit

Supports the registration of scope with when in a FixtureAnyWordSpecLike.

Supports the registration of scope with when in a FixtureAnyWordSpecLike.

This method supports syntax such as the following:

"Basketball players" should { ... }

they when { ... }
    ^

For examples of scope registration, see the main documentation for AnyWordSpec.

Value parameters:
right

the body function