Ember environment breaks when running rails tests

If the ember environment is test, rails test env will not work.