Spread the spinach and onion mixture out on the pastry, leaving a 5cm border. Season the ricotta and put it on top. Spoon on the mushroom mixture. Fold the edges of the pastry up over the filling, pinching it at 2cm intervals. If the pastry breaks, just patch it up. Put in the fridge to chill for 20 minutes.