Expect (Expect v3.1.0)
View Source Expect allows you to write simple, clear assertions in your unit tests.
While initially this may appear to be a simple case of style, over time you will find that these assertions read better, simplify your tests, and allow you to write tests that more clearly reveal their intent.
Instead of writing the following...
assert name == "Douglas Adams"
you can write...
expect(name, to: equal("Douglas Adams"))
See the documentation on Expect.Matchers for more examples of matchers to use.
Summary
Functions
Take a given value and prepare it to be matched against one or more matchers.