fix failing specs introduced with the min and max amounts on item total promotion rule.
we need to stub the environments file read before the specs run, since the memoization of the @@rails_environments is always returning []
fix more failing specs due to the changes in the item total promotion rule (adding min and max preferences)
Fix not load environment files when test

Closes #5289

remove the stub since Rails.root is a waaaaay better way of testing this.
Refactor files

Update 1.8 hash style to 1.9 hash style.

Closes #5288