Avoid stubbing a Geo node instance
Geo node can be created via let_it_be, i.e frozen. The frozen objects can't be stubbed. Let's define GeoNode.current? method instead and stub its calls.
Showing
Please register or sign in to comment
Geo node can be created via let_it_be, i.e frozen. The frozen objects can't be stubbed. Let's define GeoNode.current? method instead and stub its calls.