struct

Spectator::TestExpression(T)

Inherits Struct < Value < Object

Base type for capturing an expression from a test.

Constructors

new(label : String)

Creates the common base of the expression.

Source

Instance methods

label

User-friendly string displayed for the actual expression being tested. For instance, in the expectation:

expect(foo).to eq(bar)

This property will be "foo". It will be the literal string "foo", and not the actual value of the foo.

Source
to_s(io)

String representation of the expression.

Source
value
Source