AllExpectations
This trait can be mixed-in a specification to allow examples to have all of their expectations being evaluated (unless the example body throws an exception of course).
All the results are collected into a list, provided by the StoredExpectations trait. These results form then the body of the each example (decorated by a special ExampleFactory) so that each example returns a Result which is the summary of all the individual issues.
It must be noted that this trait relies on a mutable list to collect the results as they are created in the example body. Because of this restriction, a Specification using that trait can either run sequentially or isolated.
If the specification is neither sequential or isolated, we force it to be isolated by default.
Attributes
- Graph
-
- Supertypes
-
trait StandardResultstrait ArgumentsCreationtrait SpecificationStructuretrait FragmentsFactorytrait StoredExpectationstrait StoredResultstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait MatchResultStackTraceclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- ExpectationsDescription
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- ExpectationsDescription
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- TypedEqual
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
use a side-effect to register a standard result
use a side-effect to register a standard result
Attributes
- Definition Classes
-
StandardResults
use a side-effect to register a standard result
use a side-effect to register a standard result
Attributes
- Definition Classes
-
StandardResults
modify the specification structure
create a new Context with the list of captured results.
create a new Context with the list of captured results.
This method could be overridden to filter the captured results and remove the skipped results for example
Attributes
use a side-effect to register a standard result
use a side-effect to register a standard result
Attributes
- Definition Classes
-
StandardResults
Inherited methods
Attributes
- Inherited from:
- StoredExpectations
shorthand method to create an Arguments object
shorthand method to create an Arguments object
Attributes
- Inherited from:
- ArgumentsCreation
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
Attributes
- Inherited from:
- ExpectationsCreation
this method can be overridden to throw exceptions when checking the match result
this method can be overridden to throw exceptions when checking the match result
Attributes
- Definition Classes
-
StoredExpectations -> ExpectationsCreation
- Inherited from:
- StoredExpectations
this method can be overridden to throw exceptions when checking the result
this method can be overridden to throw exceptions when checking the result
Attributes
- Definition Classes
-
StoredExpectations -> ExpectationsCreation
- Inherited from:
- StoredExpectations
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a description
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable
- Inherited from:
- ExpectationsCreation
Attributes
- Returns
-
an Expectable with a function to show the element T
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- SpecificationStructure
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- ContextualSpecificationStructure
Attributes
- Inherited from:
- SpecificationStructure
modify the fragments, using the current environment
modify the fragments, using the current environment
Attributes
- Inherited from:
- SpecificationStructure
modify the fragments
this method can be overridden to intercept a MatchResult and change its message before it is thrown
this method can be overridden to intercept a MatchResult and change its message before it is thrown
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Returns
-
the match result without any side-effects
- Definition Classes
-
StoredExpectations -> ExpectationsCreation
- Inherited from:
- StoredExpectations
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
Attributes
- Inherited from:
- MatchResultStackTrace
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StoredExpectations
Attributes
- Inherited from:
- SpecificationStructure
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Attributes
- Inherited from:
- StandardResults
Inherited fields
Attributes
- Inherited from:
- ArgumentsCreation
Implicits
Implicits
Attributes
- Returns
-
an example factory which will take the stored results and make them the example result
- Definition Classes
Inherited implicits
describe a value with the aka method
describe a value with the aka method
Attributes
- Inherited from:
- ExpectationsDescription
Attributes
- Inherited from:
- ExpectationsDescription
A value can be tested against another with the === operator. It is equivalent to writing a must_== b
A value can be tested against another with the === operator. It is equivalent to writing a must_== b
Attributes
- Inherited from:
- TypedEqual