Cleaning up "pages change activities" bug

This is a test to verify that [#44098927] is fixed and should stay fixed, along with some notes in comments about what I tried which might be useful in the future.
Fixes a deprecation warning when testing for RAILS_ENV