Registers a subject description in WordSpec and fixture.WordSpec.
Registers a subject description in WordSpec and fixture.WordSpec.
For example, this class enables syntax such as the following in WordSpec
and fixture.WordSpec:
"A Stack (when empty)" should { ...
^
Class that provides a role-specific type for an implicit conversion used to support the registration of subject descriptions in
WordSpecandfixture.WordSpec.For example, this class enables syntax such as the following in
WordSpecandfixture.WordSpec:"A Stack (when empty)" should { ... ^This
shouldmethod, which is provided inShouldVerb, needs an implicit parameter of type(String, String, () => Unit) => Unit. Because the required type has no ScalaTest-specific types in it, it is possible that another implicit parameter of that same type could be in scope, which would cause a compile failure. Requiring an implicit parameter of the more specificStringVerbBlockRegistration, which simply extends the needed type,(String, String, () => Unit) => Unit, avoids this potential conflict.