Comparing Maps for equality in a Spock test
As of version 0.4, the Spock testing framework doesn't handle Map comparisons well if either comparand contains non-String values. To test for equality of two Maps, use the following helper function:

As of version 0.4, the Spock testing framework doesn't handle Map comparisons well if either comparand contains non-String values. To test for equality of two Maps, use the following helper function: