Why spec_helper has this ENV ["RAILS_ENV"] || = "test"?

Does anyone want to use spec_helper in environments other than a test, or why is it configured like this? To set up custom test environments?

+5
source share
1 answer

The environment can have any possible name. You can use several test environments or even give your test environment a different name than just test. Since the symbol of your test environment testdoes not mean that you cannot select it differently.

+2
source

All Articles