(PUP-2214) Fix spec failures under 1.8.7

Fixes some rdoc1 spec issues by providing explicit envs in the specs.