Skip to content

Ensure null objects behave correctly with to_a and to_ary

Created by: JonRowe

Further to #357 (closed) we could return nil when the double is a as_null_object, we shouldn't change the behaviour when it's not a null object but this could be considered slightly more correct behaviour.

This is #358 based off 2-14 in case we want to backport this.

Merge request reports