Can you use `"#{spring} rails runner 'puts Rails.env'"` here rather than adding a custom rake task to the app?

Also, you can use the `assert_success` method to check stdout, as in the other tests.