allows to use a hamcrest matchers to match parameters.
allows to use a hamcrest matchers to match parameters.
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
allows to use a specs matcher to match parameters by encapsulating it as a Hamcrest matcher.
A value can be tested against another with the === operator.
A value can be tested against another with the === operator. It is equivalent to writing a must_== b
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the result
this method can be overriden to throw exceptions when checking the result
an Expectable with a description function
an Expectable with a description function
an Expectable with a description
an Expectable
an Expectable with a function to show the element T
describe a value with the aka method
describe a value with the aka method
this method can be overriden to intercept a MatchResult and change its message before it is thrown
this method can be overriden to intercept a MatchResult and change its message before it is thrown
This trait allows to specify functions as arguments in mocked methods.
It uses a pair of (arguments, expected result) to specify what was the passed function:
function2.call((i:Int, d: Double) => (i + d).toString) there was one(function2).call((1, 3.0) -> "4.0")
anyFunctionN will just match any function with n arguments