refactor our task to set rails env
Merge pull request #945 from rspec/set_rails_env_to_test_for_consistency

Set RAILS_ENV to test for consistency.