Removing use of subclassed application constant and instead using the
more agnostic Rails.application syntax. This means tests will be more
portable, and won't rely on the existence of a particular subclass.
Merge pull request #10832 from wangjohn/removing_use_of_application_constant

Removing use of subclassed application constant and replacing with Rails.application