Skip to content

1.1.0 - Mimus becomes much easier to use!

Compare
Choose a tag to compare
@paweldudek paweldudek released this 16 Mar 08:05
· 65 commits to master since this release
511fa52

The motivation behind this release is to simplify the usage of Mimus by limiting the amount of chrome you need to add to your application. Specifically recording values no longer requires them to implement MockEquatable. Furthermore you can use IdenticalTo and EqualTo matchers to compare AnyObjects and Equatable types without the need to implement MockEquatable by them.

In general this has significantly decreased the amount of additional code we had to write for our objects to make them compatible with Mimus.

  • BREAKING Changed MockEquatable equation function to equalTo(other: Any). This allows to record any type of value, not just types that conform to MockEquatable, greatly increasing how versatile this framework is
  • Added InstanceOf<T> matcher
  • Added EqualTo and IdenticalTo matchers
  • Fixed issue where matching dictionaries with subset of equal keys could be successful, even if they contained different amount of entires (Thanks @karolus for spotting this!)