rails/spring — pull request #309 by rzane (2014-06-04 19:47:47+00:00)
Title: Respect -e and --environment options for rails console

I'm running Rails 4.0.5 and Spring 1.1.3. The -e and --environment options don't seem to work as expected.

There are four ways to set the environment for the rails console, and only the first two work:

1. RAILS_ENV=test rails console
2. rails console test
3. rails console -e test
4. rails console --environment=test

__Steps to reproduce:__

I added the following line to an initializer:
```ruby
puts "The environment is currently: #{Rails.env}"
```

```
$ spring stop
=> Spring stopped.

$ rails c -e test
=> The environment is currently: development
Loading test environment (Rails 4.0.5)
[1] pry(main)> Rails.env
=> "test"
```