The Expectable class models anything which can be checked by applying a Matcher
It stores a value which is only evaluated when necessary and an optional additional description for that value.
The Expectable object is responsible for creating its own description, based on the value toString method and and an additional description.
- Companion:
- object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class ShouldExpectable[T]
Expectable[T]
Value members
Concrete methods
- Returns:
a description of the value provided by the user a combination of the value show by specs2 and an optional description
evaluate the value once and return an expectable with the same expression, ready to be evaluated again
evaluate the value once and return an expectable with the same expression, ready to be evaluated again