ruby on rails - requests are not considered local in test environment -


i have below code provide custom error page production environments

unless rails.application.config.consider_all_requests_local     rescue_from standarderror, :with => :render_500 end 

when run rspec spec/controllers/some_controller_spec.rb fine , value rails.application.config.consider_all_requests_local set true(which case in config/environments/test.rb)

but when run rspec spec/controllers, configuration value set false , rendering custom error page in test

why rails.application.config.consider_all_requests_local returned false when run rspec spec/controllers eventhough have set true in config/environments/test.rb?


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -