Descriptible

org.specs2.matcher.ExpectationsDescription.Descriptible
class Descriptible[T](value: => T)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def aka: Expectable[T]

Attributes

Returns

an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value

def aka(alias: => String): Expectable[T]

Attributes

Returns

an expectable with an alias description

def as(alias: String => String): Expectable[T]

Attributes

Returns

an expectable with an alias description, after the value string

def post(alias: => String): Expectable[T]

Attributes

Returns

an expectable with an alias description, after the value string

def showAs(implicit show: T => String): Expectable[T]

Attributes

Returns

an expectable with a function to show the element T