I\'d like the code in one of my initializers (in config/initializers/) to be run only for the :development environment, but not :test
I don't know if this is a good idea, but it's a different idea.
You could create a config/initializers/development directory (or config/environments/development/initializers), put your barista_config.rb in that directory, and then include anything in that directory from config/environments/development.rb.
I don't know if that's a good idea or not but it's at least a third option...just in case you're still thinking about this problem three and a half years after asking the question.