Ensure
|
Ensure |
allows the actor to make an assertion
|
Ensure.that |
fails the actor flow when the assertion is not met
|
Ensure.that |
provides a description of the assertion being made
|
Ensure.that |
provides a description of the assertion being made, while correctly cleaning the output from new line characters
|
Ensure.that |
complains when given an Expectation that doesn't conform to the interface
|
Ensure.that |
when emitting an artifact
|
- |
custom errors
|
- |
allows the actor to fail the flow with a custom RuntimeError, embedding the original error
|
- |
allows the actor to fail the flow with a custom RuntimeError with a custom error message
|
- |
Expectation
|
Expectation |
allows to easily define an assertion, which
|
- |
allows the actor flow to continue when the assertion passes
|
Expectation.that
Ensure.that |
stops the actor flow when the assertion fails
|
Expectation.that
Ensure.that |
allows to alias an expectation, so that the alias
|
- |
contributes to a human-readable description
|
Expectation.to |
provides a precise failure message when the expectation is not met
|
Expectation.to |
allows to override the description of an expectation, so that the new version
|
- |
replaces the old description
|
Expectation.to |
provides a precise failure message when the expectation is not met
|
Expectation.to |
and
|
- |
allows for the actor flow to continue when the "actual" meets all the expectations
|
and |
breaks the actor flow when "actual"
|
- |
does not meet the first expectation
|
and |
does not meet the second expectation
|
and |
contributes to a human-readable description
|
and |
contain
|
- |
allows for the actor flow to continue when the "actual" contains the "expected" text
|
contain |
breaks the actor flow when "actual" does not contain the "expected" text
|
contain |
contributes to a human-readable description
|
contain |
containAtLeastOneItemThat
|
- |
allows for the actor flow to continue when the "actual" includes at least one item that meets the expectation
|
containAtLeastOneItemThat |
breaks the actor flow when "actual" does not include at least one item that meets the expectation
|
containAtLeastOneItemThat |
breaks the actor flow when "actual" is an empty list
|
containAtLeastOneItemThat |
contributes to a human-readable description
|
atLeastOne |
containItemsWhereEachItem
|
- |
allows for the actor flow to continue when the "actual" includes only those items that meet the expectation
|
containItemsWhereEachItem |
breaks the actor flow when "actual" contains at least one item that does not meet the expectation
|
containItemsWhereEachItem |
breaks the actor flow when "actual" is an empty list
|
containItemsWhereEachItem |
contributes to a human-readable description
|
atLeastOne |
endsWith
|
- |
allows for the actor flow to continue when the "actual" ends with "expected"
|
endsWith |
breaks the actor flow when "actual" does not end with "expected"
|
endsWith |
contributes to a human-readable description
|
endsWith |
equals
|
equals |
breaks the actor flow when the values of "actual" and "expected" don't match
|
equals |
contributes to a human-readable description
|
equals |
includes
|
- |
allows for the actor flow to continue when the "actual" includes the "expected" text
|
includes |
breaks the actor flow when "actual" does not include the "expected" text
|
includes |
contributes to a human-readable description
|
includes |
isAfter
|
- |
allows for the actor flow to continue when the "actual" is after the "expected"
|
isAfter |
breaks the actor flow when "actual" is not after the "expected"
|
isAfter |
contributes to a human-readable description
|
isAfter |
isBefore
|
- |
allows for the actor flow to continue when the "actual" is before the "expected"
|
isBefore |
breaks the actor flow when "actual" is not before the "expected"
|
isBefore |
contributes to a human-readable description
|
isBefore |
isFalse
|
- |
allows for the actor flow to continue when the "actual" is false
|
isFalse |
breaks the actor flow when "actual" is not false
|
isFalse |
contributes to a human-readable description
|
isFalse |
isGreaterThan
|
- |
allows for the actor flow to continue when the "actual" is greater than "expected"
|
isGreaterThan |
breaks the actor flow when "actual" is not greater than "expected"
|
isGreaterThan |
contributes to a human-readable description
|
isGreaterThan |
isLessThan
|
- |
allows for the actor flow to continue when the "actual" is less than "expected"
|
isLessThan |
breaks the actor flow when "actual" is not less than "expected"
|
isLessThan |
contributes to a human-readable description
|
isLessThan |
isTrue
|
- |
allows for the actor flow to continue when the "actual" is true
|
isTrue |
breaks the actor flow when "actual" is not true
|
isTrue |
contributes to a human-readable description
|
isTrue |
matches
|
- |
allows for the actor flow to continue when the "actual" matches the "expected"
|
matches |
breaks the actor flow when "actual" does not match the "expected"
|
matches |
contributes to a human-readable description
|
matches |
not
|
- |
allows for the actor flow to continue when the "actual" meets the expectation
|
not |
breaks the actor flow when "actual" does not meet the expectation
|
not |
contributes to a human-readable description
|
not |
flips the outcome of an assertion, but doesn't hide any errors that might have happened while making it
|
- |
double negative
|
- |
contributes to a human-readable description
|
not |
when combined with other assertions, such as
|
- |
and,
|
- |
produces a sensible error message
|
and |
contributes to a human-readable description
|
and |
contains,
|
- |
produces a sensible error message
|
contains |
contributes to a human-readable description
|
contains |
containAtLeastOneItemThat,
|
- |
produces a sensible error message
|
containAtLeastOneItemThat |
contributes to a human-readable description
|
containAtLeastOneItemThat |
endsWith,
|
- |
produces a sensible error message
|
endsWith |
contributes to a human-readable description
|
endsWith |
equals,
|
- |
produces a sensible error message
|
equals |
contributes to a human-readable description
|
equals |
isTrue,
|
- |
produces a sensible error message
|
isTrue |
contributes to a human-readable description
|
isTrue |
isFalse,
|
- |
produces a sensible error message
|
isFalse |
contributes to a human-readable description
|
isFalse |
includes,
|
- |
produces a sensible error message
|
includes |
contributes to a human-readable description
|
includes |
isGreaterThan,
|
- |
produces a sensible error message
|
isGreaterThan |
contributes to a human-readable description
|
isGreaterThan |
isLessThan,
|
- |
produces a sensible error message
|
isLessThan |
contributes to a human-readable description
|
isLessThan |
or,
|
- |
produces a sensible error message
|
or |
contributes to a human-readable description
|
or |
startsWith,
|
- |
produces a sensible error message
|
startsWith |
contributes to a human-readable description
|
startsWith |
or
|
- |
allows for the actor flow to continue when the "actual"
|
- |
meets all the expectations
|
or |
meets at least one expectation
|
or |
breaks the actor flow when "actual" does meets none of the expectations
|
or |
contributes to a human-readable description
|
or |
hasProperty
|
- |
allows for the actor flow to continue when the "actual" has a property that meets the expectation
|
hasProperty |
breaks the actor flow when "actual" does not have a property that meets the expectation
|
hasProperty |
contributes to a human-readable description
|
hasProperty |
startsWith
|
- |
allows for the actor flow to continue when the "actual" starts with "expected"
|
startsWith |
breaks the actor flow when "actual" does not start with "expected"
|
startsWith |
contributes to a human-readable description
|
startsWith |