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
WordSpec
andfixture.WordSpec
.For example, this class enables syntax such as the following in
WordSpec
andfixture.WordSpec
:"A Stack (when empty)" should { ... ^
This
should
method, 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.