In Rails, if i run tests using rspec, will rspec automatically change the environment to :test and start executing the tests? and once it complete the tests, will the environment be changed back to :development ? Any pointers where i can find more info on this ?
In Rails, if i run tests using rspec, will rspec automatically change the environment
Share
Tests will always run in
testunless you change it likeRAILS_ENV=development rspec spec/developmentis then for the server and the console.