Packages

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
WordSpecLike.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TheyWord
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TheyWord()

Value Members

  1. def can(right: ⇒ Unit)(implicit pos: Position): Unit

    Supports the registration of scope with can in a WordSpecLike.

    Supports the registration of scope with can in a WordSpecLike.

    This method supports syntax such as the following:

    "Basketball players" when { ... }
    
    they can { ... }
         ^
    

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

    right

    the body function

  2. def must(right: ⇒ Unit)(implicit pos: Position): Unit

    Supports the registration of scope with must in a WordSpecLike.

    Supports the registration of scope with must in a WordSpecLike.

    This method supports syntax such as the following:

    "Basketball players" when { ... }
    
    they must { ... }
         ^
    

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

    right

    the body function

  3. def should(right: ⇒ Unit)(implicit pos: Position): Unit

    Supports the registration of scope with should in a WordSpecLike.

    Supports the registration of scope with should in a WordSpecLike.

    This method supports syntax such as the following:

    "Basketball players" when { ... }
    
    they should { ... }
         ^
    

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

    right

    the body function

  4. def when(right: ⇒ Unit)(implicit pos: Position): Unit

    Supports the registration of scope with when in a WordSpecLike.

    Supports the registration of scope with when in a WordSpecLike.

    This method supports syntax such as the following:

    "Basketball players" should { ... }
    
    they when { ... }
         ^
    

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

    right

    the body function